mirror of
https://github.com/wnayes/macutils.git
synced 2025-01-18 05:29:48 +00:00
40 lines
646 B
C
40 lines
646 B
C
#include <stdio.h>
|
|
#include <string.h>
|
|
#ifdef BSD
|
|
extern char *rindex();
|
|
#define search_last rindex
|
|
#else /* BSD */
|
|
extern char *strrchr();
|
|
#define search_last strrchr
|
|
#endif /* BSD */
|
|
|
|
extern void transname();
|
|
|
|
extern char info[];
|
|
extern char trname[];
|
|
|
|
typedef struct macheader {
|
|
char m_name[128];
|
|
char m_type[4];
|
|
char m_author[4];
|
|
short m_flags;
|
|
long m_datalen;
|
|
long m_rsrclen;
|
|
long m_createtime;
|
|
long m_modifytime;
|
|
} macheader;
|
|
|
|
extern struct macheader mh;
|
|
|
|
extern int listmode;
|
|
extern int verbose;
|
|
extern int info_only;
|
|
extern int uneven_lines;
|
|
extern int to_read;
|
|
extern int was_macbin;
|
|
|
|
extern FILE *ifp;
|
|
|
|
extern void do_error();
|
|
|