X-Git-Url: http://ftp.carnet.hr/pub/carnet-debian/scm?a=blobdiff_plain;f=src%2Fos_regex%2Fexamples%2Fmatch.c;h=69afa9e5afd557c2543e3247396cb7ffa87f92dc;hb=HEAD;hp=d63ffe738f1046a7f23811a22c48ccf2fee71205;hpb=914feba5d54f979cd5d7e69c349c3d01f630042a;p=ossec-hids.git diff --git a/src/os_regex/examples/match.c b/src/os_regex/examples/match.c old mode 100755 new mode 100644 index d63ffe7..69afa9e --- a/src/os_regex/examples/match.c +++ b/src/os_regex/examples/match.c @@ -2,27 +2,28 @@ * Under the public domain. It is just an example. * Some examples of the usage for the os_regex library. */ - + #include #include #include + #include "os_regex.h" -int main(int argc,char **argv) -{ - if(argc != 3) - { - printf("%s regex word\n",argv[0]); +int main(int argc, char **argv) +{ + if (argc != 3) { + printf("%s regex word\n", argv[0]); exit(1); } - printf("for MATCH: "); - if(OS_Match2(argv[1],argv[2])) + printf("for MATCH: "); + if (OS_Match2(argv[1], argv[2])) { printf("TRUE\n"); - else + } else { printf("FALSE\n"); + } - return(0); + return (0); } -/* EOF */ +