Back to index

glibc  2.9
bug-regex3.c File Reference
#include <sys/types.h>
#include <regex.h>
#include <stdio.h>
#include <stdlib.h>

Go to the source code of this file.


int main (void)

Function Documentation

int main ( void  )

Definition at line 28 of file bug-regex3.c.

  regex_t re;
  int n;

  n = regcomp (&re, "[a-bA-B]", REG_ICASE);
  if (n != 0)
      char buf[500];
      regerror (n, &re, buf, sizeof (buf));
      printf ("regcomp failed: %s\n", buf);
      exit (1);

  regfree (&re);

  return 0;

Here is the call graph for this function: