X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=ossec-hids.git;a=blobdiff_plain;f=src%2Fos_regex%2Fexamples%2Fregex_str.c;h=08e6044f83f1602a40cc925bb780f2ba71829042;hp=c28346fcd1a2f26f1ca3b154f9d582bc0d14d1a3;hb=6ef2f786c6c8ead94841b5f93baf9f43421f08c8;hpb=301048b51990573e58a30dc4a5bb4ec285cad554 diff --git a/src/os_regex/examples/regex_str.c b/src/os_regex/examples/regex_str.c index c28346f..08e6044 100755 --- a/src/os_regex/examples/regex_str.c +++ b/src/os_regex/examples/regex_str.c @@ -2,12 +2,12 @@ * Under the public domain. It is just an example. * Some examples of usage for the os_regex library. */ - + #include #include #include - -/* Must be included */ + +/* Must be included */ #include "os_regex.h" int main(int argc,char **argv) @@ -17,7 +17,7 @@ int main(int argc,char **argv) /* OSRegex structure */ OSRegex reg; - + /* checking for arguments */ if(argc != 3) { @@ -33,7 +33,7 @@ int main(int argc,char **argv) if(OSRegex_Compile(argv[1], ®, OS_RETURN_SUBSTRING)) { char *retv; - /* If the execution succeeds, the substrings will be + /* If the execution succeeds, the substrings will be * at reg.sub_strings */ if((retv = OSRegex_Execute(argv[2], ®))) @@ -45,7 +45,7 @@ int main(int argc,char **argv) printf("next pt: '%s'\n", retv); /* Assigning reg.sub_strings to ret */ ret = reg.sub_strings; - + printf("substrings:\n"); while(*ret) { @@ -63,13 +63,13 @@ int main(int argc,char **argv) OSRegex_FreePattern(®); } - + /* Compilation error */ else { printf("Error: Regex Compile Error: %d\n", reg.error); } - + return(r_code); } /* EOF */