-
Notifications
You must be signed in to change notification settings - Fork 0
/
101-main.c
38 lines (36 loc) · 877 Bytes
/
101-main.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#include "main.h"
#include <stdio.h>
/**
* main - check the code
*
* Return: Always 0.
*/
int main(void)
{
int r;
r = wildcmp("main.c", "*.c");
printf("%d\n", r);
r = wildcmp("main.c", "m*a*i*n*.*c*");
printf("%d\n", r);
r = wildcmp("main.c", "main.c");
printf("%d\n", r);
r = wildcmp("main.c", "m*c");
printf("%d\n", r);
r = wildcmp("main.c", "ma********************************c");
printf("%d\n", r);
r = wildcmp("main.c", "*");
printf("%d\n", r);
r = wildcmp("main.c", "***");
printf("%d\n", r);
r = wildcmp("main.c", "m.*c");
printf("%d\n", r);
r = wildcmp("main.c", "**.*c");
printf("%d\n", r);
r = wildcmp("main-main.c", "ma*in.c");
printf("%d\n", r);
r = wildcmp("main", "main*d");
printf("%d\n", r);
r = wildcmp("abc", "*b");
printf("%d\n", r);
return (0);
}