delorie.com/djgpp/doc/libc/libc_864.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

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

ANSI/ISO C No
POSIX No


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004