mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-15 00:38:15 +00:00
examples: Use printf rather than [f]put[w]s (pull request #135)
This commit is contained in:
parent
bc6468d230
commit
5baf114b7f
1 changed files with 1 additions and 3 deletions
|
@ -50,10 +50,8 @@
|
|||
#ifdef XML_UNICODE_WCHAR_T
|
||||
# include <wchar.h>
|
||||
# define XML_FMT_STR "ls"
|
||||
# define xcputs(s) do { fputws((s), stdout); putchar('\n'); } while (0)
|
||||
#else
|
||||
# define XML_FMT_STR "s"
|
||||
# define xcputs(s) puts(s)
|
||||
#endif
|
||||
|
||||
static void XMLCALL
|
||||
|
@ -65,7 +63,7 @@ startElement(void *userData, const XML_Char *name, const XML_Char **atts)
|
|||
|
||||
for (i = 0; i < *depthPtr; i++)
|
||||
putchar('\t');
|
||||
xcputs(name);
|
||||
printf("%" XML_FMT_STR "\n", name);
|
||||
*depthPtr += 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue