31 |
|
#include <time.h> |
32 |
|
#include <ctype.h> |
33 |
|
|
34 |
+ |
#include "resolu.h" |
35 |
+ |
|
36 |
|
#define MAXLINE 512 |
37 |
|
|
36 |
– |
#ifndef BSD |
37 |
– |
#define index strchr |
38 |
– |
#endif |
39 |
– |
|
40 |
– |
extern char *index(); |
41 |
– |
|
38 |
|
char HDRSTR[] = "#?"; /* information header magic number */ |
39 |
|
|
40 |
|
char FMTSTR[] = "FORMAT="; /* format identifier */ |
41 |
|
|
42 |
|
char TMSTR[] = "CAPDATE="; /* capture date identifier */ |
43 |
|
|
44 |
+ |
extern void fputword(char *s, FILE *fp); |
45 |
+ |
|
46 |
|
static int mycheck(); |
47 |
|
|
48 |
|
|
142 |
|
char **av; |
143 |
|
FILE *fp; |
144 |
|
{ |
147 |
– |
int quote; |
148 |
– |
|
145 |
|
while (ac-- > 0) { |
146 |
|
fputword(*av++, fp); |
147 |
|
fputc(ac ? ' ' : '\n', fp); |
309 |
|
|
310 |
|
cdat.fp = fout; |
311 |
|
cdat.fs[0] = '\0'; |
312 |
< |
if (getheader(fin, mycheck, &cdat) < 0) |
312 |
> |
if (getheader(fin, mycheck, (char *)&cdat) < 0) |
313 |
|
return(-1); |
314 |
|
if (!cdat.fs[0]) |
315 |
|
return(0); |