summaryrefslogtreecommitdiff
path: root/examples/addr.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/addr.c')
-rw-r--r--examples/addr.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/examples/addr.c b/examples/addr.c
index 5f495a052..e32b60766 100644
--- a/examples/addr.c
+++ b/examples/addr.c
@@ -78,11 +78,15 @@ static int parse(const char* str)
address_get_local_part(address, no, buf, sizeof(buf), &got);
- if(got) printf(" local-part <%s>", buf);
+ if(got) {
+ printf(" local-part <%s>", buf);
- address_get_domain(address, no, buf, sizeof(buf), &got);
+ address_get_domain(address, no, buf, sizeof(buf), &got);
- if(got) printf(" domain <%s>\n", buf);
+ if(got) printf(" domain <%s>", buf);
+
+ printf("\n");
+ }
address_get_route(address, no, buf, sizeof(buf), &got);

Return to:

Send suggestions and report system problems to the System administrator.