more on strtok

This commit is contained in:
tTh
2023-09-03 22:24:56 +02:00
parent 42ead5b695
commit c6fe2224bf
2 changed files with 66 additions and 7 deletions

View File

@@ -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;
}
/*---------------------------------------------------------------------*/