summaryrefslogtreecommitdiff
path: root/examples/parse_text.c
diff options
context:
space:
mode:
authorAllen Winter <allen.winter@kdab.com>2022-06-11 11:38:24 -0400
committerAllen Winter <allen.winter@kdab.com>2022-06-11 12:59:14 -0400
commit6b74841772981be4c88dc176634bafd2e6ad7b7c (patch)
tree751d2668b557e4199dedd1d5881fd58e163b04a0 /examples/parse_text.c
parent3d033a489cba309d98fb52166fbe77908f3305e7 (diff)
parenta8ef3de84cc5740978a49dcf7b8eeb2cd5fc6cb8 (diff)
downloadlibical-git-flexbison.tar.gz
Merge branch 'master' into flexbisonflexbison
Diffstat (limited to 'examples/parse_text.c')
-rw-r--r--examples/parse_text.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/parse_text.c b/examples/parse_text.c
index 67a2345f..d97ef4c6 100644
--- a/examples/parse_text.c
+++ b/examples/parse_text.c
@@ -1,6 +1,9 @@
/* parse_text.c
- */
+ SPDX-FileCopyrightText: <eric@civicknowledge.com>
+ SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0
+*/
+
#include <libical/ical.h>
#include <stdlib.h>
@@ -43,7 +46,6 @@ void parse_text(char* argv[])
completes a component, c will be non-zero */
c = icalparser_add_line(parser,line);
-
if (c != 0){
char *temp = icalcomponent_as_ical_string_r(c);
printf("%s", temp);
@@ -56,6 +58,5 @@ void parse_text(char* argv[])
} while ( line != 0);
-
icalparser_free(parser);
}