MCPcopy Create free account
hub / github.com/F-Stack/f-stack / parse_time

Function parse_time

tools/libutil/login_times.c:47–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45};
46
47static char *
48parse_time(char * ptr, u_short * t)
49{
50 u_short val;
51
52 for (val = 0; *ptr && isdigit(*ptr); ptr++)
53 val = (u_short)(val * 10 + (*ptr - '0'));
54
55 *t = (u_short)((val / 100) * 60 + (val % 100));
56
57 return (ptr);
58}
59
60
61login_time_t

Callers 1

parse_ltFunction · 0.85

Calls 1

isdigitFunction · 0.85

Tested by

no test coverage detected