MCPcopy Create free account
hub / github.com/OpenPrinting/cups / compare_strings

Function compare_strings

berkeley/lpc.c:146–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144 */
145
146static int /* O - -1 or 1 = no match, 0 = match */
147compare_strings(const char *s, /* I - Command-line string */
148 const char *t, /* I - Option string */
149 size_t tmin) /* I - Minimum number of unique chars in option */
150{
151 size_t slen; /* Length of command-line string */
152
153
154 slen = strlen(s);
155 if (slen < tmin)
156 return (-1);
157 else
158 return (strncmp(s, t, slen));
159}
160
161
162/*

Callers 3

mainFunction · 0.85
do_commandFunction · 0.85
show_helpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected