* Return the length of the "simple" part of a path match limiter. */
| 678 | * Return the length of the "simple" part of a path match limiter. |
| 679 | */ |
| 680 | int simple_length(const char *match) |
| 681 | { |
| 682 | int len = -1; |
| 683 | |
| 684 | for (;;) { |
| 685 | unsigned char c = *match++; |
| 686 | len++; |
| 687 | if (c == '\0' || is_glob_special(c)) |
| 688 | return len; |
| 689 | } |
| 690 | } |
| 691 | |
| 692 | int no_wildcard(const char *string) |
| 693 | { |
no outgoing calls