Lines Matching defs:fmtbuf
57 char fmtbuf[128];
162 snprintf(fmtbuf, sizeof fmtbuf,
165 panic(fmtbuf);
268 snprintf(fmtbuf, sizeof fmtbuf,
270 logit(fmtbuf);
330 cp = fmtbuf;
334 return (ctos(fmtbuf));
355 if (!get_line(fmtbuf, sizeof(fmtbuf)))
357 switch (*fmtbuf) {
363 debug = fmtbuf[1] - '0';
364 snprintf(fmtbuf, sizeof fmtbuf,
366 dlog(fmtbuf);
378 i = fmtbuf[1] == 'b' ? BLACK : WHITE;
379 snprintf(fmtbuf, sizeof fmtbuf,
382 dlog(fmtbuf);
390 if (fmtbuf[1] == '\0') {
395 if ((fp = fopen(fmtbuf + 1, "w")) == NULL)
409 for (str = fmtbuf + 1; *str; str++)
415 sp = &board[s1 = ctos(fmtbuf + 1)];
427 str = fmtbuf;
428 snprintf(str, fmtbuf + sizeof fmtbuf - str,
431 snprintf(str, fmtbuf + sizeof fmtbuf - str,
433 dlog(fmtbuf);
436 sp = &board[i = ctos(fmtbuf + 1)];
437 snprintf(fmtbuf, sizeof fmtbuf,
443 dlog(fmtbuf);
444 snprintf(fmtbuf, sizeof fmtbuf,
448 dlog(fmtbuf);
449 snprintf(fmtbuf, sizeof fmtbuf,
453 dlog(fmtbuf);
456 str = fmtbuf + 1;
470 printcombo(cbp, fmtbuf, sizeof fmtbuf);
471 dlog(fmtbuf);