Rewrote head to perservere when it can't open a file, and share code

with cat.
This commit is contained in:
Matt Kraai
2000-09-27 04:09:22 +00:00
parent e7c1af1e0d
commit c0321f9bc6
5 changed files with 107 additions and 105 deletions

View File

@@ -395,6 +395,7 @@ extern int print_file_by_name(char *filename);
extern char process_escape_sequence(char **ptr);
extern char *get_last_path_component(char *path);
extern void xregcomp(regex_t *preg, const char *regex, int cflags);
extern FILE *wfopen(const char *path, const char *mode);
extern FILE *xfopen(const char *path, const char *mode);
#ifndef DMALLOC