Miscellaneous > Programming & Networking
quick C question
Stryker:
quote:Originally posted by jtpenrod:
The commas are the problem: these should be semi's.
--- End quote ---
That's correct for the for() function. I figured it all out, I was using while() way wrong. Now to figure out how to take some chars out of a string and use them.
char *buf1="abcdefg";
how do we make buf2="cdef"?
flap:
strncpy(buf2, buf1 + 2, 4);
Navigation
[0] Message Index
[*] Previous page
Go to full version