Lines Matching refs:inbuf
95 static char inbuf[BUFSIZ]; variable
280 snprintf(inbuf, sizeof(inbuf), "%s/%s", _PATH_MSGS, cp); in main()
288 if (stat(inbuf, &stbuf) != 0) in main()
292 unlink(inbuf); in main()
350 fgets(inbuf, sizeof inbuf, stdin); in main()
354 ptr, ctime(&t), inbuf); in main()
360 fgets(inbuf, sizeof inbuf, stdin); in main()
363 blankline = (blankline || (inbuf[0] == '\n')); in main()
364 seensubj = (seensubj || (!blankline && (strncmp(inbuf, "Subj", 4) == 0))); in main()
365 fputs(inbuf, newmsg); in main()
435 if (tgetent(inbuf, getenv("TERM")) <= 0 in main()
496 && fgets(inbuf, sizeof inbuf, newmsg) in main()
497 && inbuf[0] != '\n') { in main()
498 fputs(inbuf, stdout); in main()
520 inbuf[0] = 'y'; in main()
524 in = inbuf; in main()
601 if (inbuf[0] == '-' || isdigit(inbuf[0])) in main()
643 while (fgets(inbuf, sizeof inbuf, newmsg)) { in prmesg()
644 fputs(inbuf, outf); in prmesg()
734 (void) fgets(inbuf, sizeof inbuf, stdin); in ask()
735 if ((n = strlen(inbuf)) > 0 && inbuf[n - 1] == '\n') in ask()
736 inbuf[n - 1] = '\0'; in ask()
738 inbuf[0] = 'x'; in ask()
743 if ((inch = inbuf[0]) == 's' || inch == 'm') { in ask()
744 if (inbuf[1] == '-') in ask()
746 else if (isdigit(inbuf[1])) in ask()
747 cmsg = atoi(&inbuf[1]); in ask()
762 in = nxtfld(inbuf); in ask()
793 while ((n = fread(inbuf, 1, sizeof inbuf, cpfrom))) in ask()
794 fwrite(inbuf, 1, n, cpto); in ask()
823 if (fgets(inbuf, sizeof inbuf, infile)) { in gfrsub()
824 if (strncmp(inbuf, "From", 4)==0) { in gfrsub()
831 in = nxtfld(inbuf); in gfrsub()
866 while (fgets(inbuf, sizeof inbuf, infile) in gfrsub()
867 && !(blankline = (inbuf[0] == '\n'))) { in gfrsub()
871 if (!seensubj && strncmp(inbuf, "Subj", 4)==0) { in gfrsub()
874 strlcpy(subj, nxtfld(inbuf), sizeof subj); in gfrsub()