strsep() not strtok() suggested

This commit is contained in:
Remzi Arpaci-Dusseau
2019-02-18 05:36:15 -05:00
parent f537af1964
commit 7f85361a23

View File

@@ -88,8 +88,7 @@ In either mode, if you hit the end-of-file marker (EOF), you should call
`exit(0)` and exit gracefully.
To parse the input line into constituent pieces, you might want to use
`strtok()` (or, if doing nested tokenization, use `strtok_r()`). Read the man
page (carefully) for more details.
`strsep()`. Read the man page (carefully) for more details.
To execute commands, look into `fork()`, `exec()`, and `wait()/waitpid()`.
See the man pages for these functions, and also read the relevant [book