]> diplodocus.org Git - nmh/blob - sbr/copyip.c
Just reworded the bit about '%s' being safe not to quote (it's only safe not to
[nmh] / 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 }