]> diplodocus.org Git - nmh/blob - sbr/copyip.c
Cope with sasl_decode64() returning SASL_CONTINUE as well as SASL_OK.
[nmh] / sbr / copyip.c
1
2 /*
3 * copyip.c -- copy a string array and return pointer to end
4 *
5 * $Id$
6 *
7 * This code is Copyright (c) 2002, by the authors of nmh. See the
8 * COPYRIGHT file in the root directory of the nmh distribution for
9 * complete copyright information.
10 */
11
12 #include <h/mh.h>
13
14
15 char **
16 copyip (char **p, char **q, int len_q)
17 {
18 while (*p && --len_q > 0)
19 *q++ = *p++;
20
21 *q = NULL;
22
23 return q;
24 }