Differences
This shows you the differences between two versions of the page.
itoa [2019/03/18 11:36] |
itoa [2021/04/05 11:23] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== itoa ====== | ||
+ | <sxh> | ||
+ | **FREE | ||
+ | |||
+ | ctl-opt dftactgrp(*no) actgrp(*caller); | ||
+ | |||
+ | dcl-pr intToAlpha pointer extproc(' | ||
+ | value int(10) value; | ||
+ | | ||
+ | radix int(10) value; | ||
+ | end-pr; | ||
+ | |||
+ | |||
+ | main(); | ||
+ | *inlr = *on; | ||
+ | |||
+ | |||
+ | dcl-proc main; | ||
+ | |||
+ | dcl-s buffer char(10); | ||
+ | |||
+ | intToAlpha(54 : %addr(buffer) : 16); | ||
+ | |||
+ | dsply buffer; | ||
+ | end-proc; | ||
+ | |||
+ | </ | ||
+ | |||
+ | {{tag> |