mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-17 02:34:36 +00:00
examples/outline.c: Make use of BUFSIZ from stdio.h consistent across examples
This commit is contained in:
parent
fcb91e43bd
commit
93a757ab7d
1 changed files with 2 additions and 4 deletions
|
@ -51,8 +51,6 @@
|
|||
# define XML_FMT_STR "s"
|
||||
#endif
|
||||
|
||||
#define BUFFSIZE 8192
|
||||
|
||||
static void XMLCALL
|
||||
start(void *data, const XML_Char *el, const XML_Char **attr) {
|
||||
int i;
|
||||
|
@ -81,7 +79,7 @@ end(void *data, const XML_Char *el) {
|
|||
|
||||
int
|
||||
main(void) {
|
||||
char buf[BUFFSIZE];
|
||||
char buf[BUFSIZ];
|
||||
XML_Parser parser = XML_ParserCreate(NULL);
|
||||
int depth = 0;
|
||||
|
||||
|
@ -97,7 +95,7 @@ main(void) {
|
|||
int done;
|
||||
int len;
|
||||
|
||||
len = (int)fread(buf, 1, BUFFSIZE, stdin);
|
||||
len = (int)fread(buf, 1, BUFSIZ, stdin);
|
||||
if (ferror(stdin)) {
|
||||
fprintf(stderr, "Read error\n");
|
||||
exit(-1);
|
||||
|
|
Loading…
Add table
Reference in a new issue