1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#include <mcheck.h> #include <regex.h> #include <stdio.h> #include <sys/types.h> int main() { regex_t regex; int rc; mtrace (); if ((rc = regcomp (®ex, "([0]", REG_EXTENDED))) printf ("Error %d (expected)\n", rc); return 0; }