Oct 14, 2001 #1 ironmunk Technical User Aug 21, 2001 51 CA Is there a way to convert LONG data types to char* or strings? I want to be able go through each number of the variable individually.
Is there a way to convert LONG data types to char* or strings? I want to be able go through each number of the variable individually.
Oct 15, 2001 #2 rpet Programmer Jun 5, 2000 87 DE Yes, the function is prototyped in stdlib.h: char *_ltoa( long value, char *string, int radix ); Upvote 0 Downvote
Oct 15, 2001 Thread starter #3 ironmunk Technical User Aug 21, 2001 51 CA can you give me some sample code? (char*) x;? Upvote 0 Downvote
Oct 15, 2001 #4 vkavith Programmer Nov 10, 2000 52 IN char str[100]; unsigned long num = some number; _ltoa (num, str, 10) Upvote 0 Downvote
Oct 16, 2001 Thread starter #5 ironmunk Technical User Aug 21, 2001 51 CA Thanks, it worked Upvote 0 Downvote