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

Function login_strinlist

tools/libutil/login_ok.c:50–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48 */
49
50int
51login_strinlist(const char **list, char const *str, int flags)
52{
53 int rc = 0;
54
55 if (str != NULL && *str != '\0') {
56 int i = 0;
57
58 while (rc == 0 && list[i] != NULL)
59 rc = fnmatch(list[i++], str, flags) == 0;
60 }
61 return rc;
62}
63
64
65/*

Callers 1

login_str2inlistFunction · 0.85

Calls 1

fnmatchFunction · 0.50

Tested by

no test coverage detected