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.
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user