Back to index

glibc  2.9
Defines | Functions
bug-regex14.c File Reference
#include <sys/types.h>
#include <mcheck.h>
#include <regex.h>
#include <stdio.h>
#include <stdlib.h>

Go to the source code of this file.

Defines

#define _REGEX_RE_COMP

Functions

int main (void)

Define Documentation

#define _REGEX_RE_COMP

Definition at line 21 of file bug-regex14.c.


Function Documentation

int main ( void  )

Definition at line 29 of file bug-regex14.c.

{
  const char *err;
  size_t i;
  int ret = 0;

  mtrace ();

  for (i = 0; i < 100; ++i)
    {
      err = re_comp ("a t.st");
      if (err)
       {
         printf ("re_comp failed: %s\n", err);
         ret = 1;
       }

      if (! re_exec ("This is a test."))
       {
         printf ("re_exec failed\n");
         ret = 1;
       }
    }

  return ret;
}

Here is the call graph for this function: