]> git.ipfire.org Git - thirdparty/coreutils.git/commit
* (print_ascii, dump_strings): Check for isascii before isprint.
authorJim Meyering <jim@meyering.net>
Tue, 24 Nov 1992 14:42:18 +0000 (14:42 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 24 Nov 1992 14:42:18 +0000 (14:42 +0000)
commit050063993738300ec27de62df1c761bb334af9ea
treeca8a6fe0081a5528f871aeabddd7b0b598785eee
parent750bb6aa692485b3ffc567aabead9de97d4eb5ca
* (print_ascii, dump_strings): Check for isascii before isprint.
(dump_strings): Free malloc'd buffer before returning.
(skip): Return non-zero if an error occurred, zero otherwise.
Exit only if asked to skip beyond end of combined input.
(check_and_close): New function.
(skip, read_block, read_char): Call check_and_close when done
processing the file associated with in_stream.
(skip, read_block, read_char): Set have_read_stdin.
(main): Close stdin (if it was ever read) and check for errors
just before exiting.
(write_block, dump_strings, dump): Don't test return value from
functions that operate on streams.  Rely on later ferror tests.
src/od.c