blob: f4ced8244e3811c9bdc3611d99fc2637c3769dcd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include <u.h>
#include <libc.h>
void
main()
{
char buf[256], *f[10];
int nf, i;
while(read(0, buf, sizeof(buf)-1) > 0){
nf = tokenize(buf, f, nelem(f));
for(i = 0; i < nf; i++)
fprint(2, "%d: %s\n", i, f[i]);
}
exits(0);
}
|