Commit | Line | Data |
---|---|---|
21c4e167 H |
1 | #include <stdio.h> |
2 | #include <glib.h> | |
3 | ||
4 | //gcc `pkg-config --cflags --libs glib-2.0` regex.c -o regex | |
5 | ||
6 | int main() { | |
7 | char string[] = "hello lol OMG NAZDAR ROFL! cus."; | |
8 | if(g_regex_match_simple("lolo", string, 0, 0)) puts("true"); | |
9 | else puts("false"); | |
10 | } |