|
-
Jul 7th, 2002, 08:10 PM
#1
converting long to char
I have a long that is under 255 and I want to convert it to a char.
I'm loading into into an array of char's but only want this first number to go into the first element of the array.
When I use ltoa I end up with
array[0] = 2
array[1] = 5
array[2] = 5
I'd like
array[0] = 255
THanks
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
|
Click Here to Expand Forum to Full Width
|