engine/regex.c

Go to the documentation of this file.
00001 /*
00002  * File: regex.c
00003  *
00004  * Description: library to use regular expressions
00005  *
00006  * History: 
00007  *          date - sf login - description
00008  *
00009  *          01/18/2006 - morphbr;vivijim - coded this file
00010  *
00011  */
00012 #include "regex.h"
00013 
00014 //int match(char *string, char *pattern, regex_t *re)
00015 int match(char *string, regex_t *re)
00016 {
00017         int     status;
00018         status = regexec( re, string, 0, NULL, 0);
00019         return(status);
00020 
00021         //It will compile the pattern (regcomp)
00022         //and execute it on the string (regexec)
00023         //if found return status (0)
00024 //        if((status=regcomp( re, pattern, REG_EXTENDED))!= 0)
00025 //                return(status);
00026 //        status = regexec( re, string, 0, NULL, 0);
00027 //        return(status);
00028 }

Generated on Sat Jul 7 23:33:10 2007 for HLBR by  doxygen 1.5.2