blob: a2243f79d2ef0394dc14066987816032e7c6707d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/* ISC license. */
#include <regex.h>
int main (void)
{
regex_t re ;
int r = regcomp(&re, "", REG_EXTENDED | REG_NOSUB) ;
switch (r)
{
case 0 : break ;
case REG_ESPACE : return 111 ;
default : return 1 ;
}
return !!regexec(&re, "a", 0, 0, 0) ;
}
|