gmc_read = read(fd, gmc_buf, BUFSIZE);
gmc_init = 1;
gmc_unget = EOF;
+ curr_email_len = 0;
}
if (gmc_unget != EOF) {
int a = gmc_unget;
gmc_unget = EOF;
+ curr_email_len++;
return a;
}
}
if (gmc_pos < gmc_read) {
+ curr_email_len++;
return gmc_buf[gmc_pos++];
} else {
gmc_pos = 0;
return EOF;
}
else {
+ curr_email_len++;
return gmc_buf[gmc_pos++];
}
}
unget_me(int c)
{
gmc_unget = c;
+ curr_email_len--;
}
struct list*