Lines Matching defs:matches
406 getaction(char *cmd, struct keyword *matches, int *retval)
411 if (! cmd || ! matches || ! retval ||
416 while (matches->match) {
425 if ((((int)strlen(matches->match)) >= actlen) &&
426 (actlen >= matches->num_match) &&
428 /* (strncasecmp(matches->match, cmd, actlen) == 0) */
429 (strncmp(matches->match, cmd, actlen) == 0)) {
430 *retval = matches->ret_code; /* Found our match */
433 matches++; /* Next match string/struct */
435 } /* End of matches loop */