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 : "");
1003 char *newfmt;
1014 newfmt = ecalloc(1, fmtsize); /* so we can realloc() in check_bufsize() */
1015 q = newfmt;
1024 check_bufsize(&newfmt, &fmtsize, &q, len);
1030 check_bufsize(&newfmt, &fmtsize, &q, 1);
1035 return newfmt;
1053 char *newfmt;
1065 newfmt = preformat(&tm, fmtstr, mp, use_hl_date);
1066 (void)strftime(buf, bufsize, newfmt, &tm);
1067 free(newfmt); /* preformat() uses malloc()/realloc() */