2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 ANSI C function strncpy().
8 /*****************************************************************************
21 Copy a string. Works like an assignment "dest=src;". At most
22 n characters are copied.
25 dest - The string is copied into this variable. Make sure it is
27 src - This is the new contents of dest.
28 n - How many characters to copy at most. If the string src is
29 smaller than that, only strlen(str)+1 bytes are copied.
35 No check is beeing made that dest is large enough for src.
42 strncpy(), memcpy(), memmove()
46 ******************************************************************************/
50 while (n
&& (*ptr
= *src
))