if (flags & FNM_EXTMATCH) { if (! first) *cp++ = '|'; cp = stpcpy (cp, "FNM_EXTMATCH"); first = 0; }
flag_output (int flags){  static char buf[100];  int first = 1;  char *cp = buf;  if (flags & FNM_PATHNAME)    {      cp = stpcpy (cp, "FNM_PATHNAME");      first = 0;    }  if (flags & FNM_NOESCAPE)    {      if (! first)	*cp++ = '|';      cp = stpcpy (cp, "FNM_NOESCAPE");      first = 0;    }  if (flags & FNM_PERIOD)    {      if (! first)	*cp++ = '|';      cp = stpcpy (cp, "FNM_PERIOD");      first = 0;    }  if (flags & FNM_LEADING_DIR)    {      if (! first)	*cp++ = '|';      cp = stpcpy (cp, "FNM_LEADING_DIR");      first = 0;    }  if (flags & FNM_CASEFOLD)    {      if (! first)	*cp++ = '|';      cp = stpcpy (cp, "FNM_CASEFOLD");      first = 0;    }  if (cp == buf)    *cp++ = '0';  *cp = '\0';  return buf;}