strsep() not strtok() suggested
This commit is contained in:
@@ -88,8 +88,7 @@ In either mode, if you hit the end-of-file marker (EOF), you should call
|
|||||||
`exit(0)` and exit gracefully.
|
`exit(0)` and exit gracefully.
|
||||||
|
|
||||||
To parse the input line into constituent pieces, you might want to use
|
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
|
`strsep()`. Read the man page (carefully) for more details.
|
||||||
page (carefully) for more details.
|
|
||||||
|
|
||||||
To execute commands, look into `fork()`, `exec()`, and `wait()/waitpid()`.
|
To execute commands, look into `fork()`, `exec()`, and `wait()/waitpid()`.
|
||||||
See the man pages for these functions, and also read the relevant [book
|
See the man pages for these functions, and also read the relevant [book
|
||||||
|
|||||||
Reference in New Issue
Block a user