more on strtok
This commit is contained in:
@@ -5,8 +5,7 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
/*---------------------------------------------------------------------*/
|
||||
|
||||
/*-------------------------------------------------------*/
|
||||
void dump_line(char *titre, char *ligne, int combien)
|
||||
{
|
||||
int foo;
|
||||
@@ -23,8 +22,7 @@ for (foo=0; foo<combien; foo++) {
|
||||
}
|
||||
puts("");
|
||||
}
|
||||
/*---------------------------------------------------------------------*/
|
||||
|
||||
/*-------------------------------------------------------*/
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
char input[] = "foo bar\tquux wiz";
|
||||
@@ -54,4 +52,3 @@ printf(" index = %d\n", foo);
|
||||
printf(" and we have [%s]\n", input+foo);
|
||||
return 0;
|
||||
}
|
||||
/*---------------------------------------------------------------------*/
|
||||
|
||||
Reference in New Issue
Block a user