Lines Matching defs:fo
365 fmt(const char *str, struct name *np, FILE *fo, size_t comma)
373 (void)fputs(str, fo);
380 (void)fputs("\n ", fo);
383 (void)putc(' ', fo);
384 (void)fputs(np->n_name, fo);
386 (void)putc(',', fo);
389 (void)putc('\n', fo);
399 fmt2(const char *str, FILE *fo)
409 (void)putc(*str, fo);
415 (void)putc(' ', fo); /* output a single space after the ':' */
424 (void)fputs("\n ", fo);
430 (void)putc(*str, fo);
434 (void)putc('\n', fo);
442 puthead(struct header *hp, FILE *fo, int w)
449 fmt("To:", hp->h_to, fo, w & GCOMMA), gotcha++;
451 (void)fprintf(fo, "Subject: %s\n", hp->h_subject), gotcha++;
453 fmt("Cc:", hp->h_cc, fo, w & GCOMMA), gotcha++;
455 fmt("Bcc:", hp->h_bcc, fo, w & GCOMMA), gotcha++;
457 (void)fprintf(fo, "In-Reply-To: %s\n", hp->h_in_reply_to), gotcha++;
459 fmt("References:", hp->h_references, fo, w & GCOMMA), gotcha++;
462 fmt2(np->n_name, fo);
466 (void)fprintf(fo, "(sendmail options: %s)\n", detract(hp->h_smopts, GSMOPTS)), gotcha++;
469 mime_putheader(fo, hp), gotcha++;
472 (void)putc('\n', fo);
548 FILE *fo;
556 fo = Fopen(name, "aef");
558 if (fo == NULL) {
563 (void)fprintf(fo, "From %s %s", myname, ctime(&now));
579 (void)fputc('>', fo);
582 (void)fwrite(line, 1, linelen, fo);
585 (void)putc('\n', fo);
586 (void)fflush(fo);
587 if (ferror(fo))
589 (void)Fclose(fo);