source: trunk/third/nmh/sbr/copyip.c @ 12455

Revision 12455, 277 bytes checked in by danw, 26 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r12454, which included commits to RCS files with non-trunk default branches.
Line 
1
2/*
3 * copyip.c -- copy a string array and return pointer to end
4 *
5 * $Id: copyip.c,v 1.1.1.1 1999-02-07 18:14:07 danw Exp $
6 */
7
8#include <h/mh.h>
9
10
11char **
12copyip (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}
Note: See TracBrowser for help on using the repository browser.