small edits
This commit is contained in:
@@ -160,11 +160,11 @@ file (thus indicating you no longer need to read from it).
|
|||||||
and return 0. Note that this is slightly different than the behavior of
|
and return 0. Note that this is slightly different than the behavior of
|
||||||
normal UNIX **cat** (if you'd like to, figure out the difference).
|
normal UNIX **cat** (if you'd like to, figure out the difference).
|
||||||
* If the program tries to **fopen()** a file and fails, it should print the
|
* If the program tries to **fopen()** a file and fails, it should print the
|
||||||
exact message "my-cat: cannot open file" and exit with status code 1.
|
exact message "my-cat: cannot open file" and exit with status code 1. If
|
||||||
If multiple files are specified on the command line, the files should
|
multiple files are specified on the command line, the files should be
|
||||||
be printed out in order until the end of the file list is reached or
|
printed out in order until the end of the file list is reached or an error
|
||||||
an error opening a file is reached (at which point the error message
|
opening a file is reached (at which point the error message is printed and
|
||||||
is printed and **my-cat** exits).
|
**my-cat** exits).
|
||||||
|
|
||||||
|
|
||||||
## my-grep
|
## my-grep
|
||||||
|
|||||||
Reference in New Issue
Block a user