mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-13 02:21:34 +00:00
![pancake](/assets/img/avatar_default.png)
- Much faster (over ninethousand) - Must do the same for code analysis stuff - Added test case * Implement r_str_glob ()
17 lines
340 B
C
17 lines
340 B
C
#include <r_util.h>
|
|
|
|
void chk(const char *s, const char *g, int o) {
|
|
int r = r_str_glob (s, g);
|
|
printf ("%d %d %s (%s)\n", r, o, s, g);
|
|
}
|
|
|
|
main () {
|
|
chk ("foo.c", "*.c", 1);
|
|
chk ("foo.c", "*.d", 0);
|
|
chk ("foo.c", "foo*", 1);
|
|
chk ("foo.c", "*oo*", 1);
|
|
chk ("foo.c", "*uu*", 0);
|
|
chk ("foo.c", "f*c", 1);
|
|
chk ("foo.c", "f*d", 0);
|
|
}
|