Chameleon

Chameleon Svn Source Tree

Root/branches/xZenu/src/modules/klibc/strcpy.c

Source at commit 1292 created 8 years 11 months ago.
By meklort, Add additional functions to klibc. Remove duplicates from libsa
1/*
2 * strcpy.c
3 *
4 * strcpy()
5 */
6
7#include <string.h>
8
9char *strcpy(char *dst, const char *src)
10{
11char *q = dst;
12const char *p = src;
13char ch;
14
15do {
16*q++ = ch = *p++;
17} while (ch);
18
19return dst;
20}
21

Archive Download this file

Revision: 1292