|
-
Oct 28th, 2002, 04:22 PM
#1
Thread Starter
Lively Member
casting char to int
Hi !
I use the following to read a token :
char delimiter[] = " ";
char *token;
token = strtok( line, delimiter);
while( token != NULL ) {
printf( " %s\n", token );
token = strtok( NULL, delimiter );
}
i want to cast the toket that i read to integer and insert it to array.
anyone ?
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
|