comparison sbr/copy.c @ 0:bce86c4163a3

Initial revision
author kono
date Mon, 18 Apr 2005 23:46:02 +0900
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:bce86c4163a3
1 /* copy.c - copy a string and return pointer to NULL terminator */
2
3
4 char *copy (from, to)
5 register char *from,
6 *to;
7 {
8 while (*to++ = *from++)
9 continue;
10
11 return (to - 1);
12 }