Lines Matching defs:fmtch
75 sfmtoff(const char **fmtbeg, const char *fmtch, off_t off)
81 len = fmtch - *fmtbeg + sizeof(PRId64);
85 *fmtbeg = fmtch + 1;
91 sfmtint(const char **fmtbeg, const char *fmtch, int num)
97 len = fmtch - *fmtbeg + 2; /* space for 'd' and '\0' */
101 *fmtbeg = fmtch + 1;
107 sfmtstr(const char **fmtbeg, const char *fmtch, const char *str)
113 len = fmtch - *fmtbeg + 2; /* space for 's' and '\0' */
117 *fmtbeg = fmtch + 1;
139 sfmtfield(const char **fmtbeg, const char *fmtch, struct message *mp)
142 q = strchr(fmtch + 1, '?');
159 switch (fmtch[1]) { /* check the '?' modifier */
165 len = q - fmtch - 1;
167 (void)strlcpy(p, fmtch + 2, len);
175 len = q - fmtch - skin_it;
177 (void)strlcpy(p, fmtch + skin_it + 1, len);
183 str = sfmtstr(fmtbeg, fmtch, p);
210 sfmtflag(const char **fmtbeg, const char *fmtch, struct message *mp)
267 return sfmtstr(fmtbeg, fmtch, disp);