2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 ANSI C function strndup().
10 /*****************************************************************************
18 const char *s
, size_t n
)
21 Create a copy of a string. The copy can be freed with free() or will
22 be freed when then program ends. The copy will be at most n character
23 long, excluding the trailing \000
26 s - String to duplicate
30 A copy of the string which can be freed with free().
42 ******************************************************************************/
50 if ((copy
= malloc (len
+1)))