|
-
April 11th, 2005, 10:37 PM
#1
Junior Member
int to string in C
Say u have int i=90 and char str[2], where str[] is an array of chars ( aka string), would u recommend using memset or memccpy (from string.h> to make a string from an integer.
In my program, int can be any random number ( not a particular range of numbers) so u cant necessarily create a lookup table and use strcpy().
please get back asap cos its due this Friday.
cheers
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|