Initial revision
[mmh] / sbr / copyip.c
1
2 /*
3  * copyip.c -- copy a string array and return pointer to end
4  *
5  * $Id$
6  */
7
8 #include <h/mh.h>
9
10
11 char **
12 copyip (char **p, char **q, int len_q)
13 {
14     while (*p && --len_q > 0)
15         *q++ = *p++;
16
17     *q = NULL;
18
19     return q;
20 }