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