By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,918 Members | 2,279 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,918 IT Pros & Developers. It's quick & easy.

strtok pointer to string?

P: 1
Hey,

After using strtok to return a pointer, how can I get the pointer string from that to an array string?

char string19[20], *strTokPtr;

strcpy(string19, strTokPtr);

I've tried the above but I am only getting the addresses.

Thanks

Ranma 1/2
Nov 4 '06 #1
Share this Question
Share on Google+
1 Reply


Banfa
Expert Mod 5K+
P: 8,916
char string19[20], *strTokPtr;

strcpy(string19, strTokPtr);

I've tried the above but I am only getting the addresses.
This doesn't sound right, post more complete code.
Nov 6 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.