| 23 |
|
#define getchar getchar_unlocked |
| 24 |
|
#define putc putc_unlocked |
| 25 |
|
#define putchar putchar_unlocked |
| 26 |
+ |
#ifndef __cplusplus |
| 27 |
|
#define feof feof_unlocked |
| 28 |
|
#define ferror ferror_unlocked |
| 29 |
|
#endif |
| 30 |
+ |
#endif |
| 31 |
|
|
| 32 |
|
#ifdef __cplusplus |
| 33 |
|
extern "C" { |
| 55 |
|
extern void printargs(int ac, char **av, FILE *fp); |
| 56 |
|
extern int formatval(char fmt[MAXFMTLEN], const char *s); |
| 57 |
|
extern void fputformat(const char *s, FILE *fp); |
| 58 |
+ |
extern int nativebigendian(void); |
| 59 |
+ |
extern int isbigendian(const char *s); |
| 60 |
+ |
extern void fputendian(FILE *fp); |
| 61 |
|
typedef int gethfunc(char *s, void *p); /* callback to process header lines */ |
| 62 |
|
extern int getheader(FILE *fp, gethfunc *f, void *p); |
| 63 |
|
extern int globmatch(const char *pat, const char *str); |