Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

c in to str

char str[(int)((ceil(log10(num))+1)*sizeof(char))];
sprintf(str, "%d", 42);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #str
ADD COMMENT
Topic
Name
7+9 =