Lines Matching refs:fmt
284 validfmt(char *fmt, cmn_fmt_t *cfstr)
303 if (*fmt == '-') {
304 fmt++;
308 if (isdigit(*fmt))
309 dig1 = fmt; /* save ptr to first digit */
310 while (isdigit(*fmt)) {
311 fmt++;
318 dig2 = fmt; /* save ptr to last digit + 1 */
321 if (isdigit(*fmt)) {
322 dig1 = fmt; /* save ptr to first digit */
323 while (isdigit(*fmt)) {
324 fmt++;
327 dig2 = fmt; /* save ptr to last digit + 1 */
345 if (*fmt == 'l') {
346 fmt++;
352 switch (*fmt) {
360 *format = *fmt;
365 *format = *fmt;
515 * fmt - pointer to caller's input buffr
530 fmt_str(fcode_env_t *env, char *fmt, char *fmtbuf, int bsize)
539 if ((pct = strchr(fmt, '%')) != 0) {
556 bytes = pct - fmt;
557 strncpy(tbuf, fmt, bytes);
559 strncpy(tbuf+bytes+1, fmt+bytes, 1);
572 bytes = pct - fmt + fw;
573 strncpy(tbuf, fmt, bytes);
578 bytes = pct - fmt - fw;
579 strncpy(tbuf, fmt, bytes);
582 bytes = pct - fmt - fw - 2;
583 strncpy(tbuf, fmt, bytes);
585 strncpy(tbuf+bytes+1, fmt+bytes, 2);
622 strncpy(fmtbuf, fmt, bsize);