From 7e1c9abe13f38bf5a3ce32e6b8b6842c1f80bcda Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Fri, 10 Jun 2016 14:20:36 +0200 Subject: dbfp_query_location.3: update --- man/dbfp_query_location.3 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/man/dbfp_query_location.3 b/man/dbfp_query_location.3 index b620283..5be7bdb 100644 --- a/man/dbfp_query_location.3 +++ b/man/dbfp_query_location.3 @@ -202,10 +202,11 @@ if an error occurs during the parsing of the \s-1XML\s0 response if the \s-1API\s0 response has not the expected structure .SH "EXAMPLE" .IX Header "EXAMPLE" -.Vb 3 +.Vb 4 \& #include \& #include \& #include +\& #include \& \& int main(int argc, char **argv) \& { @@ -229,6 +230,8 @@ if the \s-1API\s0 response has not the expected structure \& locations[i].lat); \& \& cleanup: +\& if (err) +\& printf("An error occured: %s\en", strerror(err)); \& for (i = 0; i < n; i++) \& dbfp_location_close(&locations[i]); \& free(locations); -- cgit v1.2.1