char line[512], *s, *e;
lineno = skip = 0;
- while (!feof(in)) {
- if( !fgets(line, sizeof(line), in)) break;
- if( (s=strchr(line, '\n')) ) *s = '\0';
+ while (fgets(line, sizeof(line), in)) {
+ if( (s=strchr(line, '\n')) ) *s = '\0';
lineno++;
/*
(void) memset((char *) compexs, 0, sizeof(unsigned long) << 11);
- while (!feof(in)) {
- if( !fgets(line, sizeof(line), in)) break;
- if( (s=strchr(line, '\n')) ) *s = '\0';
+ while (fgets(line, sizeof(line), in)) {
+ if( (s=strchr(line, '\n')) ) *s = '\0';
/*
* Skip blank lines and lines that start with a '#'.
*/
/*
* Write the header.
*/
- fwrite((char *) hdr, sizeof(ac_uint4), 2, out);
+ fwrite((char *) hdr, sizeof(ac_uint2), 2, out);
/*
* Write the byte count.