Lines Matching defs:buf
137 char buf[1024], sparebuf[1024], *p;
152 while (fgets(buf, sizeof(buf), fp)) {
153 buf[strcspn(buf, "\r\n")] = '\0';
154 strcpy(sparebuf, buf);
155 p = buf;
160 printf("%s\n", buf);
163 if (!strncmp(buf, "seed ", 5)) {
164 seed_random(atoi(buf+5));
165 } else if (!strncmp(buf, "random=", 7)) {
173 printf("%s\n", buf);
174 } else if (!strncmp(buf, "test ", 5)) {
175 char *p = buf+5;