what does this line of code mean exactly?
p = strtok(line_in, " \t<>\n");
Printable View
what does this line of code mean exactly?
p = strtok(line_in, " \t<>\n");
>p = strtok(line_in, " \t<>\n");
Take the first sequence of characters from line_in up to a tab, opening angle bracket, closing angle bracket or newline and assign the address of the beginning of that sequence to p.
ok whats another way to write this:
for (i = 0; i < margin; putchar(' '), i++) ;
>for (i = 0; i < margin; putchar(' '), i++) ;
I'd prefer
But you can write it a lot of ways depending on what type of loop you use.Code:for (i = 0; i < margin; i++)
putchar(' ');
Why not just look at the manual to find out what functions do. :)Quote:
Originally posted by blindleaf
what does this line of code mean exactly?
p = strtok(line_in, " \t<>\n");