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

Function in_ltms

tools/libutil/login_times.c:144–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144int
145in_ltms(const login_time_t *ltm, struct tm *tm, time_t *t)
146{
147 int i = 0;
148
149 while (i < LC_MAXTIMES && ltm[i].lt_dow != LTM_NONE) {
150 if (in_ltm(ltm + i, tm, t))
151 return (i);
152 i++;
153 }
154 return (-1);
155}
156
157int
158in_lts(const login_time_t *ltm, time_t *t)

Callers 2

in_ltsFunction · 0.85
auth_timeokFunction · 0.85

Calls 1

in_ltmFunction · 0.85

Tested by

no test coverage detected