| # | Line 31 | Line 31 | static const char RCSid[] = "$Id$"; | |
|---|---|---|
| 31 | ||
| 32 | #define MAXLINE 2048 | |
| 33 | ||
| 34 | + | extern time_t timegm(struct tm *tm); |
| 35 | + | |
| 36 | const char HDRSTR[] = "#?"; /* information header magic number */ | |
| 37 | ||
| 38 | const char FMTSTR[] = "FORMAT="; /* format identifier */ | |
| # | Line 213 | Line 215 | getheader( /* get header from file */ | |
| 215 | return(-1); | |
| 216 | if (buf[0] == '\n') | |
| 217 | return(0); | |
| 216 | – | #ifdef MSDOS |
| 217 | – | if (buf[0] == '\r' && buf[1] == '\n') |
| 218 | – | return(0); |
| 219 | – | #endif |
| 218 | if (buf[MAXLINE-2] != '\n') { | |
| 219 | ungetc(buf[MAXLINE-2], fp); /* prevent false end */ | |
| 220 | buf[MAXLINE-2] = '\0'; | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |