about summary refs log tree commit diff
path: root/slurp.c
Commit message (Collapse)AuthorAgeFilesLines
* slurp: don't special-case empty files, instead behave like strdup("")Leah Neukirchen2019-04-231-5/+0
| | | | This allows the caller to call free(3) in any case.
* styleLeah Neukirchen2017-08-311-1/+1
|
* slurp: zero-terminate bufferChristian Neukirchen2016-10-061-1/+3
|
* seq: slurp the file instead of mmapChristian Neukirchen2016-10-051-0/+56
mmap is not robust when there are writes possible.