Lines Matching refs:template
131 split_fields(const ofmt_field_t *template, uint_t maxfields, uint_t maxcols)
145 cols += template[i].of_width;
153 sp->s_fields[sp->s_nfields++] = template[i].of_name;
178 ofmt_open(const char *str, const ofmt_field_t *template, uint_t flags,
208 if (template == NULL)
210 for (ofp = template; ofp->of_name != NULL; ofp++)
221 sp = split_fields(template, nfields, maxcols);
238 * nfields is the number of fields in template.
243 template[j].of_name) == 0) {
262 of[of_index].of_name = strdup(template[j].of_name);
270 of[of_index].of_width = template[j].of_width;
271 of[of_index].of_id = template[j].of_id;
272 of[of_index].of_cb = template[j].of_cb;
599 s = "no template provided for fields";