Lines Matching defs:format
151 * print time <t> in h:m:s format with precision <p>
174 static int p_time(Shell_t *shp, Sfio_t *out, const char *format, clock_t *tm)
180 for(first=format ; c= *format; format++)
184 sfwrite(stkp, first, format-first);
187 if((c= *++format) == '%')
189 first = format;
195 c = *++format;
207 c = *++format;
225 first = format+1;
227 if(format>first)
228 sfwrite(stkp,first, format-first);
701 register char *format;
706 format="%s()\n{ ";
708 format="function %s\n{ ";
709 sfprintf(sfstdout,format,nv_name(np));
2376 const char *format = e_timeformat;
2438 format = nv_getval(np);
2441 if(!format)
2442 format = e_timeformat;
2445 format = strchr(format+1,'\n')+1;
2450 if(format && *format)
2451 p_time(shp,sfstderr,sh_translate(format),tm);