/[pcre]/code/trunk/pcretest.c
ViewVC logotype

Diff of /code/trunk/pcretest.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1664 by ph10, Wed Jul 6 14:55:40 2016 UTC revision 1665 by ph10, Thu Oct 6 16:32:46 2016 UTC
# Line 1982  return(result); Line 1982  return(result);
1982  static int pchar(pcre_uint32 c, FILE *f)  static int pchar(pcre_uint32 c, FILE *f)
1983  {  {
1984  int n = 0;  int n = 0;
1985    char tempbuffer[16];
1986  if (PRINTOK(c))  if (PRINTOK(c))
1987    {    {
1988    if (f != NULL) fprintf(f, "%c", c);    if (f != NULL) fprintf(f, "%c", c);
# Line 2003  if (c < 0x100) Line 2004  if (c < 0x100)
2004    }    }
2005    
2006  if (f != NULL) n = fprintf(f, "\\x{%02x}", c);  if (f != NULL) n = fprintf(f, "\\x{%02x}", c);
2007      else n = sprintf(tempbuffer, "\\x{%02x}", c);
2008    
2009  return n >= 0 ? n : 0;  return n >= 0 ? n : 0;
2010  }  }
2011    

Legend:
Removed from v.1664  
changed lines
  Added in v.1665

  ViewVC Help
Powered by ViewVC 1.1.5