35 const char *needle =
"^hi";
36 const char *haystack_1 =
"patata";
37 const char *haystack_2 =
"hillow";
43 printf(
"Using default values\n");
47 printf(
"result (%s) = %d\n", haystack_1, res);
49 printf(
"result (%s) = %d\n", haystack_2, res);
52 printf(
"oops, cannot compile regexp\n");
_Use_decl_annotations_ int __cdecl printf(const char *const _Format,...)
static void test_or(void)
int main(int argc, char **argv)
static static fork const void static count static fd const char const char static newpath char char argv
RZ_API RzRegex * rz_regex_new(const char *pattern, const char *cflags)
RZ_API int rz_regex_exec(const RzRegex *preg, const char *string, size_t nmatch, RzRegexMatch __pmatch[], int eflags)
RZ_API int rz_regex_comp(RzRegex *, const char *, int)
RZ_API void rz_regex_free(RzRegex *)
RZ_API int rz_regex_match(const char *pattern, const char *flags, const char *text)
RZ_API bool rz_regex_check(const RzRegex *rr, const char *str)