Go to the first, previous, next, last section, table of contents.


wild

Syntax

#include <debug/wild.h>

int wild (char *pattern, char *string);

Description

This function matches a string pointed to by string against a pattern pointed to by pattern. pattern may include wildcard characters `?' and `*', meaning, respectively, any single character and any string of characters. The function returns non-zero if the string matches the pattern, zero otherwise.

This function is meant to be used for simple matching of patterns, such as if a debugger needs to allow specification of symbols using wildcards.

Return Value

The function returns non-zero if the string matches the pattern, zero otherwise.

Portability

not ANSI, not POSIX


Go to the first, previous, next, last section, table of contents.