##### Synopsis

    #include <stdlib.h>
    char *ltoa(long val, char *buf, int radix);

##### Description

ltoa converts val to a string in base radix and places the result in buf.

ltoa returns buf as the result.

If radix is greater than 36, the result is undefined.

If val is negative and radix is 10, the string has a leading minus sign (-); for all other values of radix, value is considered unsigned and never has a leading minus sign.

##### Portability

ltoa is an extension to the standard C library provided by CrossWorks C.

##### See Also

itoa lltoa ultoa ulltoa utoa