update mappings to reflect recent changes
[AROS.git] / compiler / clib / strcpy.c
blobc78609d7919267514afb71a8ad56d6d4657aa17a
1 /*
2 Copyright © 1995-2012, The AROS Development Team. All rights reserved.
3 $Id$
5 C99 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 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 */