| plan 9 kernel history: overview | file list | diff list |
2000/0308/port/parse.c (diff list | history)
| 1999/0316/sys/src/9/port/parse.c:5,27 – 2000/0308/sys/src/9/port/parse.c:5,10 (short | long | prev | next) | ||
|
Replace parsefields with new library function getfields, now that getfields is thread-safe.
rsc Fri Mar 4 12:44:25 2005 | ||
| 1999/0316 | #include "fns.h" #include "../port/error.h" | |
| 1999/0316/sys/src/9/port/parse.c:38,44 – 2000/0308/sys/src/9/port/parse.c:21,27 | ||
| 1999/0316 | if(n > 0 && cb->buf[n-1] == '\n') n--; cb->buf[n] = '\0'; | |
| 2000/0308 | cb->nf = getfields(cb->buf, cb->f, nelem(cb->f), 1, " "); | |
| 1999/0316 | return cb; } | |