MCPcopy Create free account
hub / github.com/coreutils/coreutils / res_width

Function res_width

src/date.c:302–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300 nanosecond resolution RES, without losing information. */
301
302ATTRIBUTE_CONST
303static int
304res_width (long int res)
305{
306 int i = 9;
307 for (long long int r = 1; (r *= 10) <= res; )
308 i--;
309 return i;
310}
311
312/* Return a newly allocated copy of FORMAT with each "%-N" adjusted to
313 be "%9N", "%6N", or whatever other resolution is appropriate for

Callers 1

adjust_resolutionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected