/* This is for AUX.  It is a wrapper around the C library regex functions. */
/* $Header: /afs/sipb.mit.edu/project/sipb-athena/repository/src/from/emul_re.c,v 1.1 1996/06/02 07:35:25 ghudson Exp $ */

#ifdef _AUX_SOURCE

static char *re;
int Error = 0;
char *re_comp(s)

char *s;

{
  if(!s)
    return 0;
  if(re)
    free(re);

  if(!(re = regcmp(s, (char *)0)))
    return "Bad argument to re_comp";

  return 0;
}

int re_exec(s)

char *s;

{
  return regex(re, s) != 0;
}

#endif
