X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=ossec-hids.git;a=blobdiff_plain;f=src%2Fos_regex%2Fexamples%2Fmatch.c;h=69afa9e5afd557c2543e3247396cb7ffa87f92dc;hp=2579dd1f224070e78e2e5cd755414aa81c1607ec;hb=3f728675941dc69d4e544d3a880a56240a6e394a;hpb=927951d1c1ad45ba9e7325f07d996154a91c911b diff --git a/src/os_regex/examples/match.c b/src/os_regex/examples/match.c old mode 100755 new mode 100644 index 2579dd1..69afa9e --- a/src/os_regex/examples/match.c +++ b/src/os_regex/examples/match.c @@ -6,23 +6,24 @@ #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 */ +