|
-
Oct 29th, 2002, 04:26 AM
#1
Addicted Member
Are you tokenising characters or strings? Either way you are generating strings (char arrays), and therefore casting to int would give you the pointer value (I think - correct me if I'm wrong).
If you know that the token is going to be a single char then you could use:
int num = (int)token[0];
Perhaps..?
HD
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
|