This commit is contained in:
Remzi Arpaci-Dusseau
2019-02-21 12:21:31 -06:00
parent 740a6ffd1c
commit 726f537b71

View File

@@ -106,7 +106,8 @@ easy: `fopen()`, `getline()`, and `fclose()`.
For printing (to screen, or to a file), use `fprintf()`. Note that it is easy
to write to standard output by passing `stdout` to `fprintf()`; it is also
easy to write to a file by passing in the `FP*` returned by `fopen`.
easy to write to a file by passing in the value returned by `fopen`, e.g.,
`fp=fopen(...); fprintf(fp, ...);`.
The routine `malloc()` is useful for memory allocation. Perhaps for
adding elements to a list?