LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Integer to string

Cannot find a function to convert integers to char[]. itoa() is not in ANSI stdlib. Any suggestions?

Thanks,
Skinny
0 Kudos
Message 1 of 2
(3,432 Views)
The ANSI C function sprintf lets you do any of the formatting conversions available to printf.

#include < ansi_c.h > // remove spaces between < >
int myInt = 1234;
char myString[256];
sprintf(myString, "%d", myInt);
Message 2 of 2
(3,430 Views)