search for: match_regex

Displaying 1 result from an estimated 1 matches for "match_regex".

2007 Aug 23
1
[nut-commits] svn commit r1073 - in trunk: . drivers
...itespace) > - matches the compiled regular expression preg. Return 1 if it > - matches, 0 if not. Return -1 on error with errno set. Special > - cases: if preg==NULL, it matches everything (no contraint). If > - str==NULL, then it is treated as "". */ > -static int match_regex(regex_t *preg, char *str) { > - int r; > - regmatch_t pmatch[1]; > - char *p, *q; > - int len; > - > - if (preg == NULL) { > - return 1; > - } > - if (str == NULL) { > - str = ""; > - } > - > - /* make a copy of str with whitespace str...