| 56 |
|
#define fscnresolu(sl,ns,fp) (fscanf(fp,PIXSTDFMT,ns,sl)==2) |
| 57 |
|
|
| 58 |
|
/* identify header lines */ |
| 59 |
+ |
#define MAXFMTLEN 64 |
| 60 |
|
#define isheadid(s) headidval(NULL,s) |
| 61 |
|
#define isformat(s) formatval(NULL,s) |
| 62 |
|
#define isdate(s) dateval(NULL,s) |
| 82 |
|
extern void fputdate(time_t t, FILE *fp); |
| 83 |
|
extern void fputnow(FILE *fp); |
| 84 |
|
extern void printargs(int ac, char **av, FILE *fp); |
| 85 |
< |
extern int formatval(char *r, const char *s); |
| 85 |
> |
extern int formatval(char fmt[MAXFMTLEN], const char *s); |
| 86 |
|
extern void fputformat(const char *s, FILE *fp); |
| 87 |
|
typedef int gethfunc(char *s, void *p); /* callback to process header lines */ |
| 88 |
|
extern int getheader(FILE *fp, gethfunc *f, void *p); |
| 89 |
|
extern int globmatch(const char *pat, const char *str); |
| 90 |
< |
extern int checkheader(FILE *fin, char *fmt, FILE *fout); |
| 90 |
> |
extern int checkheader(FILE *fin, char fmt[MAXFMTLEN], FILE *fout); |
| 91 |
|
|
| 92 |
|
#ifdef __cplusplus |
| 93 |
|
} |