summaryrefslogtreecommitdiff
path: root/examples/access_properties_and_parameters.c
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2013-05-04 21:39:27 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2013-05-04 21:39:27 +0000
commitfec6336699f34758d3e6cb41b2edf902fedb9035 (patch)
tree8256c1dbf3ca7c9e58a3dbecf07cf826fb2e0ce2 /examples/access_properties_and_parameters.c
parent7dbffd7e2b0067e834801617c5c486e3177f6709 (diff)
downloadlibical-master.tar.gz
Diffstat (limited to 'examples/access_properties_and_parameters.c')
-rw-r--r--examples/access_properties_and_parameters.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/access_properties_and_parameters.c b/examples/access_properties_and_parameters.c
index 5b52217..0c0f2ae 100644
--- a/examples/access_properties_and_parameters.c
+++ b/examples/access_properties_and_parameters.c
@@ -2,6 +2,7 @@
#include <libical/ical.h>
#include <string.h>
+#include <stdlib.h>
/* Get a particular parameter out of a component. This routine will
return a list of strings of all attendees who are required. Note
@@ -44,7 +45,7 @@ void get_required_attendees(icalcomponent* event)
/* Remember, the caller does not own this string, so you
should strdup it if you want to change it. */
const char *attendee = icalproperty_get_attendee(p);
- printf(attendee);
+ printf("%s",attendee);
}
}