libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
Loading...
Searching...
No Matches
glob.h File Reference
#include <stdbool.h>
Include dependency graph for glob.h:

Go to the source code of this file.

Functions

bool glob_match (char const *pat, char const *str)
 Tests whether a string matches a glob pattern.
 

Function Documentation

◆ glob_match()

bool glob_match ( char const *  pat,
char const *  str 
)

Tests whether a string matches a glob pattern.

Supports the wildcard characters '*' (matches zero or more characters) and '?' (matches exactly one character).

Parameters
patNull-terminated glob pattern.
strNull-terminated string to test.
Returns
true if str matches pat, false otherwise.