/*
* file.h - definitions for file(1) program
- # @(#)$Ident$
+ * @(#)$Ident$
*
* Copyright (c) Ian F. Darwin, 1987.
* Written by Ian F. Darwin.
char desc[MAXDESC]; /* description */
};
+#if defined(__STDC__) || defined(__cplusplus)
+int apprentice(char *fn, int check);
+int ascmagic(unsigned char *buf, int nbytes);
+void error(char *fmt, ...);
+int fsmagic(char *fn);
+int is_compress(unsigned char *p, int *b);
+int is_tar(unsigned char *buf);
+void mdump(struct magic *m);
+parse(char *l, int *ndx, int check);
+void process(char *inname);
+void showstr(char *s);
+int softmagic(unsigned char *buf, int nbytes);
+void tryit(unsigned char *buf, int nb);
+uncompress(unsigned char *old, unsigned char **newch, int n);
+void warning(char *f, ...);
+#else
+/* error "Non-ANSI externs not written yet" */
extern void error(), exit();
+#endif