summaryrefslogtreecommitdiff
path: root/src/od.c
AgeCommit message (Collapse)Author
1992-12-02Convert static declarations of struct option to use new macros fromJim Meyering
getopt.h: no_argument, required_argument, and optional_argument.
1992-11-24* (print_ascii, dump_strings): Use ISDIGIT and ISPRINTJim Meyering
macros like pr.c. Suggested by David J. MacKenzie.
1992-11-24* (print_ascii, dump_strings): Check for isascii before isprint.Jim Meyering
(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.
1992-11-19Merged in changes for 1.3.5.Jim Meyering
1992-11-08Declared lots of external functions and variables static.Jim Meyering
Made several statically-initialized arrays `const'
1992-11-08Initial revisionJim Meyering