diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2002-09-02 14:33:29 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2002-09-02 14:33:29 +0000 |
commit | 963dbebcfeba4731d5479c6e18e8fd0b4f4ac0eb (patch) | |
tree | 5a0fc17e3c42a704c464acbd1f29d3d8381fc131 /examples/addr.c | |
parent | 3a3490eecf751bfc54c90692eab20d8408061bea (diff) | |
download | mailutils-963dbebcfeba4731d5479c6e18e8fd0b4f4ac0eb.tar.gz mailutils-963dbebcfeba4731d5479c6e18e8fd0b4f4ac0eb.tar.bz2 |
Untabified. Needed for proper conversion to *.texi
Diffstat (limited to 'examples/addr.c')
-rw-r--r-- | examples/addr.c | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/examples/addr.c b/examples/addr.c index e5a589141..b38533e30 100644 --- a/examples/addr.c +++ b/examples/addr.c @@ -58,46 +58,46 @@ parse (const char *str) printf ("%d ", no); if (isgroup) - { - address_get_personal (address, no, buf, sizeof (buf), &got); + { + address_get_personal (address, no, buf, sizeof (buf), &got); - printf ("group <%s>\n", buf); - } + printf ("group <%s>\n", buf); + } else - { - address_get_email (address, no, buf, sizeof (buf), 0); + { + address_get_email (address, no, buf, sizeof (buf), 0); - printf ("email <%s>\n", buf); - } + printf ("email <%s>\n", buf); + } address_get_personal (address, no, buf, sizeof (buf), &got); if (got && !isgroup) - printf (" personal <%s>\n", buf); + printf (" personal <%s>\n", buf); address_get_comments (address, no, buf, sizeof (buf), &got); if (got) - printf (" comments <%s>\n", buf); + printf (" comments <%s>\n", buf); address_get_local_part (address, no, buf, sizeof (buf), &got); if (got) - { - printf (" local-part <%s>", buf); + { + 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>", buf); + if (got) + printf (" domain <%s>", buf); - printf ("\n"); - } + printf ("\n"); + } address_get_route (address, no, buf, sizeof (buf), &got); if (got) - printf (" route <%s>\n", buf); + printf (" route <%s>\n", buf); } address_destroy (&address); @@ -132,13 +132,13 @@ main (int argc, const char *argv[]) for (; argv[argc]; argc++) { if (strcmp (argv[argc], "-") == 0) - { - parseinput (); - } + { + parseinput (); + } else - { - parse (argv[argc]); - } + { + parse (argv[argc]); + } } return 0; |