Home | History | Annotate | Download | only in mail

Lines Matching defs:newfmt

77 	char *newfmt;	/* pointer to new format string */
82 newfmt = salloc(len);
83 (void)strlcpy(newfmt, *fmtbeg, len - sizeof(PRId64) + 1);
84 (void)strlcat(newfmt, PRId64, len);
86 (void)sasprintf(&p, newfmt, off);
93 char *newfmt;
98 newfmt = salloc(len);
99 (void)strlcpy(newfmt, *fmtbeg, len);
100 newfmt[len-2] = 'd'; /* convert to printf format */
102 (void)sasprintf(&p, newfmt, num);
109 char *newfmt;
114 newfmt = salloc(len);
115 (void)strlcpy(newfmt, *fmtbeg, len);
116 newfmt[len-2] = 's'; /* convert to printf format */
118 (void)sasprintf(&p, newfmt, str ? str : "");
988 char *newfmt;
999 newfmt = ecalloc(1, fmtsize); /* so we can realloc() in check_bufsize() */
1000 q = newfmt;
1009 check_bufsize(&newfmt, &fmtsize, &q, len);
1015 check_bufsize(&newfmt, &fmtsize, &q, 1);
1020 return newfmt;
1038 char *newfmt;
1050 newfmt = preformat(&tm, fmtstr, mp, use_hl_date);
1051 (void)strftime(buf, bufsize, newfmt, &tm);
1052 free(newfmt); /* preformat() uses malloc()/realloc() */