-/* @(#) $Id$ */
+/* @(#) $Id: ./src/shared/regex_op.c, 2011/09/08 dcid Exp $
+ */
/* Copyright (C) 2009 Trend Micro Inc.
* All rights reserved.
int OS_PRegex(char *str, char *regex)
{
regex_t preg;
-
+
if(!str || !regex)
return(0);
-
-
+
+
if(regcomp(&preg, regex, REG_EXTENDED|REG_NOSUB) != 0)
{
merror("%s: Posix Regex compile error (%s).", __local_name, regex);
regfree(&preg);
return(1);
-
+
}
#endif