diff options
author | fdrake <fdrake> | 2002-07-01 14:45:51 +0000 |
---|---|---|
committer | fdrake <fdrake> | 2002-07-01 14:45:51 +0000 |
commit | 8a71e568276517737cb0c11a7f0aeffc8eae2ad9 (patch) | |
tree | c3610bc1a5675549e7a2d87234f63e9d8308762c /examples/elements.c | |
parent | 0dc1376d617a3d18c92fd7a4d56447bcc565b6f8 (diff) | |
download | libexpat-8a71e568276517737cb0c11a7f0aeffc8eae2ad9.tar.gz |
De-tabify; minor code-style consistency changes.
Diffstat (limited to 'examples/elements.c')
-rw-r--r-- | examples/elements.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/examples/elements.c b/examples/elements.c index 9a20c34..42f0889 100644 --- a/examples/elements.c +++ b/examples/elements.c @@ -1,7 +1,8 @@ /* This is simple demonstration of how to use expat. This program -reads an XML document from standard input and writes a line with the -name of each element to standard output indenting child elements by -one tab stop more than their parent element. */ + reads an XML document from standard input and writes a line with + the name of each element to standard output indenting child + elements by one tab stop more than their parent element. +*/ #include <stdio.h> #include "expat.h" @@ -38,9 +39,9 @@ main(int argc, char *argv[]) done = len < sizeof(buf); if (!XML_Parse(parser, buf, len, done)) { fprintf(stderr, - "%s at line %d\n", - XML_ErrorString(XML_GetErrorCode(parser)), - XML_GetCurrentLineNumber(parser)); + "%s at line %d\n", + XML_ErrorString(XML_GetErrorCode(parser)), + XML_GetCurrentLineNumber(parser)); return 1; } } while (!done); |