]> diplodocus.org Git - nmh/blob - sbr/copy.c
Update some of the 'how to do a release' documentation
[nmh] / sbr / copy.c
1
2 /*
3 * copy.c -- copy a string and return pointer to NULL terminator
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 char *
15 copy(char *from, char *to)
16 {
17 while ((*to = *from)) {
18 to++;
19 from++;
20 }
21 return (to);
22 }