Updated PCI IDs to latest snapshot.
[tangerine.git] / compiler / clib / strcpy.c
blobd33a18051168799917f736abb6226d3c44ddb356
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 ANSI C function strcpy().
6 */
8 /*****************************************************************************
10 NAME */
11 #include <string.h>
13 char * strcpy (
15 /* SYNOPSIS */
16 char * dest,
17 const char * src)
19 /* FUNCTION
20 Copy a string. Works like an assignment "dest=src;".
22 INPUTS
23 dest - The string is copied into this variable. Make sure it is
24 large enough.
25 src - This is the new contents of dest.
27 RESULT
28 dest.
30 NOTES
31 No check is beeing made that dest is large enough for src.
33 EXAMPLE
35 BUGS
37 SEE ALSO
38 strncpy(), memcpy(), memmove()
40 INTERNALS
42 ******************************************************************************/
44 char * ptr = dest;
46 while ((*ptr = *src))
48 ptr ++;
49 src ++;
52 return dest;
53 } /* strcpy */