X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Ffmt_addr.c;h=a2338e361a5be2c3bb8453df809b200d7c433e58;hp=bfb42d83b4d3bd4b51d8cc38479a2af98fb794f0;hb=ced6090a330d3d83d0bce709f756aa3d7d65fea4;hpb=337338b404931f06f0db2119c9e145e8ca5a9860 diff --git a/sbr/fmt_addr.c b/sbr/fmt_addr.c index bfb42d8..a2338e3 100644 --- a/sbr/fmt_addr.c +++ b/sbr/fmt_addr.c @@ -1,10 +1,10 @@ /* - * fmt_addr.c -- format an address field (from fmt_scan) - * - * This code is Copyright (c) 2002, by the authors of nmh. See the - * COPYRIGHT file in the root directory of the nmh distribution for - * complete copyright information. - */ +** fmt_addr.c -- format an address field (from fmt_scan) +** +** This code is Copyright (c) 2002, by the authors of nmh. See the +** COPYRIGHT file in the root directory of the nmh distribution for +** complete copyright information. +*/ #include #include @@ -33,19 +33,20 @@ static unsigned int bufsiz; /* current size of buf */ } -/* fmt_scan will call this routine if the user includes the function - * "(formataddr {component})" in a format string. "orig" is the - * original contents of the string register. "str" is the address - * string to be formatted and concatenated onto orig. This routine - * returns a pointer to the concatenated address string. - * - * We try to not do a lot of malloc/copy/free's (which is why we - * don't call "getcpy") but still place no upper limit on the - * length of the result string. - * - * This routine is placed in a separate library so it can be - * overridden by particular programs (e.g., "replsbr"). - */ +/* +** fmt_scan will call this routine if the user includes the function +** "(formataddr {component})" in a format string. "orig" is the +** original contents of the string register. "str" is the address +** string to be formatted and concatenated onto orig. This routine +** returns a pointer to the concatenated address string. +** +** We try to not do a lot of malloc/copy/free's (which is why we +** don't call "getcpy") but still place no upper limit on the +** length of the result string. +** +** This routine is placed in a separate library so it can be +** overridden by particular programs (e.g., "replsbr"). +*/ char * formataddr (char *orig, char *str) @@ -65,9 +66,9 @@ formataddr (char *orig, char *str) bufend = buf + bufsiz; } /* - * If "orig" points to our buffer we can just pick up where we - * left off. Otherwise we have to copy orig into our buffer. - */ + ** If "orig" points to our buffer we can just pick up where we + ** left off. Otherwise we have to copy orig into our buffer. + */ if (orig == buf) dst = last_dst; else if (!orig || !*orig) {