printf ("\n%*s", margin, "");
else {
if (pos >= 68) {
- printf (",\n ");
+ fputs(",\n ", stdout);
pos = 2;
} else {
- printf (", ");
+ fputs(", ", stdout);
pos += 2;
}
}
char *cp, buffer[BUFSIZ];
if (*ap == NULL) {
- printf ("Enter component name: ");
+ fputs("Enter component name: ", stdout);
fflush (stdout);
if (fgets (buffer, sizeof buffer, stdin) == NULL)
case FT_LS_COMP:
case FT_LV_COMPFLAG:
case FT_LV_COMP:
- printf(", comp ");
+ fputs(", comp ", stdout);
litputs(fmt->f_comp->c_name);
if (fmt->f_comp->c_type)
printf(", c_type %s", c_typestr(fmt->f_comp->c_type));
case FT_LOCALDATE:
case FT_GMTDATE:
case FT_PARSEDATE:
- printf(", c_name ");
+ fputs(", c_name ", stdout);
litputs(fmt->f_comp->c_name);
if (fmt->f_comp->c_type)
printf(", c_type %s", c_typestr(fmt->f_comp->c_type));
case FT_MYMBOX:
case FT_GETMYMBOX:
case FT_GETMYADDR:
- printf(", c_name ");
+ fputs(", c_name ", stdout);
litputs(fmt->f_comp->c_name);
if (fmt->f_comp->c_type)
printf(", c_type %s", c_typestr(fmt->f_comp->c_type));
case FT_COMPF:
printf(", width %d, fill '", fmt->f_width);
litputc(fmt->f_fill);
- printf("' name ");
+ fputs("' name ", stdout);
litputs(fmt->f_comp->c_name);
if (fmt->f_comp->c_type)
printf(", c_type %s", c_typestr(fmt->f_comp->c_type));
case FT_LITF:
printf(", width %d, fill '", fmt->f_width);
litputc(fmt->f_fill);
- printf("' ");
+ fputs("' ", stdout);
litputs(fmt->f_text);
break;
case FT_IF_S_NULL:
case FT_IF_MATCH:
case FT_IF_AMATCH:
- printf(" continue else goto");
+ fputs(" continue else goto", stdout);
/* FALLTHRU */
case FT_GOTO:
i = findlabel(fmt + fmt->f_skip);
break;
case FT_LS_LIT:
- printf(" str ");
+ fputs(" str ", stdout);
litputs(fmt->f_text);
break;
case FT_LS_GETENV:
- printf(" getenv ");
+ fputs(" getenv ", stdout);
litputs(fmt->f_text);
break;
case FT_LS_DECODECOMP:
- printf(", comp ");
+ fputs(", comp ", stdout);
litputs(fmt->f_comp->c_name);
break;
if (str != ctx->str) {
if (changed++)
putchar(' ');
- printf("str=");
+ fputs("str=", stdout);
litputs(str);
ctx->str = str;
}
putchar('\n');
if (strcmp(outbuf, ctx->outbuf) != 0) {
- printf("outbuf=");
+ fputs("outbuf=", stdout);
litputs(outbuf);
putchar('\n');
free(ctx->outbuf);
case FT_LS_COMP:
case FT_LV_COMPFLAG:
case FT_LV_COMP:
- printf(", comp ");
+ fputs(", comp ", stdout);
litputs(fmt->f_comp->c_name);
if (fmt->f_comp->c_type)
printf(", c_type %s", c_typestr(fmt->f_comp->c_type));
case FT_LOCALDATE:
case FT_GMTDATE:
case FT_PARSEDATE:
- printf(", c_name ");
+ fputs(", c_name ", stdout);
litputs(fmt->f_comp->c_name);
if (fmt->f_comp->c_type)
printf(", c_type %s", c_typestr(fmt->f_comp->c_type));
case FT_MYMBOX:
case FT_GETMYMBOX:
case FT_GETMYADDR:
- printf(", c_name ");
+ fputs(", c_name ", stdout);
litputs(fmt->f_comp->c_name);
if (fmt->f_comp->c_type)
printf(", c_type %s", c_typestr(fmt->f_comp->c_type));
case FT_COMPF:
printf(", width %d, fill '", fmt->f_width);
litputc(fmt->f_fill);
- printf("' name ");
+ fputs("' name ", stdout);
litputs(fmt->f_comp->c_name);
if (fmt->f_comp->c_type)
printf(", c_type %s", c_typestr(fmt->f_comp->c_type));
case FT_LITF:
printf(", width %d, fill '", fmt->f_width);
litputc(fmt->f_fill);
- printf("' ");
+ fputs("' ", stdout);
litputs(fmt->f_text);
break;
case FT_IF_S_NULL:
case FT_IF_MATCH:
case FT_IF_AMATCH:
- printf(" continue else goto");
+ fputs(" continue else goto", stdout);
/* FALLTHRU */
case FT_GOTO:
i = findlabel(fmt + fmt->f_skip);
break;
case FT_LS_LIT:
- printf(" str ");
+ fputs(" str ", stdout);
litputs(fmt->f_text);
break;
case FT_LS_GETENV:
- printf(" getenv ");
+ fputs(" getenv ", stdout);
litputs(fmt->f_text);
break;
case FT_LS_DECODECOMP:
- printf(", comp ");
+ fputs(", comp ", stdout);
litputs(fmt->f_comp->c_name);
break;
pathname = read_line ();
if (pathname == NULL) done (1);
} else {
- printf ("What is the whole path? /");
+ fputs("What is the whole path? /", stdout);
pathname = read_line ();
if (pathname == NULL) done (1);
pathname = concat ("/", pathname, NULL);
" to access %s:\n\n%s\n\n",
mh_oauth_svc_display_name(ctx), url);
}
- printf("Enter the authorization code: ");
+ fputs("Enter the authorization code: ", stdout);
fflush(stdout);
code = geta();
if (digest)
fputs(ofilen == 1 ? delim3 : delim4, stdout);
else {
- printf ("\n-------");
+ fputs("\n-------", stdout);
if (ofilen == 1)
printf (" Forwarded Message%s", PLURALS(ofilec));
else
break;
case NMH_RENAME: {
char buf[PATH_MAX];
- printf ("Enter filename or full path of the new file: ");
+ fputs("Enter filename or full path of the new file: ", stdout);
if (fgets (buf, sizeof buf, stdin) == NULL ||
buf[0] == '\0') {
file = NULL;
if (nmsgs) {
if (notifysw & NT_MAIL) {
if (personal)
- printf ("You have ");
+ fputs("You have ", stdout);
else
printf ("%s has ", user);
int i;
struct mailname *mp;
- printf ("-------\n\t-- Addresses --\nlocal:\t");
+ fputs("-------\n\t-- Addresses --\nlocal:\t", stdout);
for (mp = localaddrs.m_next; mp; mp = mp->m_next)
printf ("%s%s%s", mp->m_mbox,
mp->m_bcc ? "[BCC]" : "",
mp->m_next ? ",\n\t" : "");
- printf ("\nnet:\t");
+ fputs("\nnet:\t", stdout);
for (mp = netaddrs.m_next; mp; mp = mp->m_next)
printf ("%s%s@%s%s%s", FENDNULL(mp->m_path),
mp->m_mbox, mp->m_host,
mp->m_bcc ? "[BCC]" : "",
mp->m_next ? ",\n\t" : "");
- printf ("\nuucp:\t");
+ fputs("\nuucp:\t", stdout);
for (mp = uuaddrs.m_next; mp; mp = mp->m_next)
printf ("%s!%s%s%s", mp->m_host, mp->m_mbox,
mp->m_bcc ? "[BCC]" : "",
mp->m_next ? ",\n\t" : "");
- printf ("\n\t-- Folder Copies --\nfcc:\t");
+ fputs("\n\t-- Folder Copies --\nfcc:\t", stdout);
for (i = 0; i < fccind; i++)
printf ("%s%s", fccfold[i], i + 1 < fccind ? ",\n\t" : "");
putchar('\n');
return;
}
if (talk)
- printf (": ");
+ fputs(": ", stdout);
fflush (stdout);
switch (retval = sm_wadr (mbox, host,
char *s;
eindex = errno; /* save the errno */
- printf(", ");
+ fputs(", ", stdout);
va_start(ap, fmt);
vprintf(fmt, ap);