Jump to content

Tokenize a string: Difference between revisions

→‎{{header|C}}: Didn't print all words before
(→‎{{header|C}}: Didn't print all words before)
Line 102:
while(a[n] && n<4) a[++n]=strtok(NULL, ",");
 
for(nn=0; nn<=n; ++nn) printf("%s.", a[nn]);
putchar('\n');
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.