[Csci551-talk] Is the sample code meant to work?
jung lee
junghlee at usc.edu
Fri Apr 15 22:12:15 PDT 2005
Hello,
If I use the sample code as it is posted on the web, it doesn't even parse the valid manager.conf file correctly.
Am I doing something wrong?
Following while statement strlen(buf) <3 will skip to read number of client.
int CParser::getgoodlinene(char *buf)
{
do {
if (fgets(buf, BUFFSIZE, fp) == NULL) {
return 1;
}
} while (buf[0] == '#' || buf[0] == 10 || buf[0] == 13 || strlen(buf) <3);
return 0;
}
More information about the Csci551-talk
mailing list