X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fcopyip.c;h=e4253da5a749961ac31061858617efcb5b0d8dc1;hp=84f724cfa48e41e21e0b6212a08a25ed799e6a58;hb=ced6090a330d3d83d0bce709f756aa3d7d65fea4;hpb=5dd6771b28c257af405d7248639ed0e3bcdce38b diff --git a/sbr/copyip.c b/sbr/copyip.c index 84f724c..e4253da 100644 --- a/sbr/copyip.c +++ b/sbr/copyip.c @@ -1,11 +1,10 @@ - /* - * copyip.c -- copy a string array and return pointer to end - * - * 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. - */ +** copyip.c -- copy a string array and return pointer to end +** +** 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 @@ -13,10 +12,9 @@ char ** copyip (char **p, char **q, int len_q) { - while (*p && --len_q > 0) - *q++ = *p++; - - *q = NULL; + while (*p && --len_q > 0) + *q++ = *p++; + *q = NULL; - return q; + return q; }