diff options
Diffstat (limited to 'examples/access_properties_and_parameters.c')
-rw-r--r-- | examples/access_properties_and_parameters.c | 3 |
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); } } |