4a0ef51edabe0391b1febd327a9688ea4685258f
[mmh] / sbr / copy.c
1 /*
2  * copy.c -- copy a string and return pointer to NULL terminator
3  *
4  * This code is Copyright (c) 2002, by the authors of nmh.  See the
5  * COPYRIGHT file in the root directory of the nmh distribution for
6  * complete copyright information.
7  */
8
9 #include <h/mh.h>
10
11 char *
12 copy(char *from, char *to)
13 {
14         while ((*to = *from)) {
15                 to++;
16                 from++;
17         }
18         return (to);
19 }