#include <windows.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <errno.h>
#include <fcntl.h>
#include <ctype.h>
#include <math.h>
#include <wctype.h>
#include <wchar.h>
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <locale.h>
#include <signal.h>
#include <limits.h>
#include <float.h>
#include <iso646.h>
#include <assert.h>
#include <stdbool.h>
◆ main()
◆ strmatch()
bool strmatch |
( |
char | str[], |
|
|
char | pattern[], |
|
|
int | n, |
|
|
int | m ) |
Function that matches input str with given wildcard pattern, it is amazing and case sensitive but it is easy to convert to case insensitive
- Parameters
-
str | the input filename |
pattern | the wildcard or filename |
n | the size of str |
m | the size of pattern |
- Returns
- true if it matchs, false otherwise