c Programming/POSIX Reference/stdlib.h/ltoa

From Wikibooks, open books for an open world
Jump to: navigation, search

The ltoa function in the C programming language is used to convert an integer into a string.

char *ltoa(long integer, char *string, int radix)

Where integer is the long integer in which a number resides, string is the string, represented by an array of characters and radix is the base number in which the number will be represented.