summaryrefslogtreecommitdiff
path: root/src/sysdeps/tryemptyregex.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2019-09-20 19:55:29 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2019-09-20 19:55:29 +0000
commit03f37879ef167dba6f5944716c06da81902e436e (patch)
tree46a70f3d85f8de8a8a1b648a53754531b86198a6 /src/sysdeps/tryemptyregex.c
parent90c1f3c1580d8e699c2788262a614a930a33e13e (diff)
downloadskalibs-03f37879ef167dba6f5944716c06da81902e436e.tar.xz
We're down to ONE rogue sysdep, boys. ONE.
Diffstat (limited to 'src/sysdeps/tryemptyregex.c')
-rw-r--r--src/sysdeps/tryemptyregex.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/sysdeps/tryemptyregex.c b/src/sysdeps/tryemptyregex.c
deleted file mode 100644
index a2243f7..0000000
--- a/src/sysdeps/tryemptyregex.c
+++ /dev/null
@@ -1,16 +0,0 @@
-/* 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) ;
-}