| 144 | */ |
| 145 | |
| 146 | static int /* O - -1 or 1 = no match, 0 = match */ |
| 147 | compare_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 | /* |
no outgoing calls
no test coverage detected