2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
5 C99 function strxfrm().
8 /*****************************************************************************
17 const char * restrict src
,
21 The strxfrm() function transforms a null-terminated string pointed to by
22 src according to the current locale collation if any, then copies the
23 transformed string into dst. Not more than n characters are copied into
24 dst, including the terminating null character added. If n is set to 0
25 (it helps to determine an actual size needed for transformation), dst is
26 permitted to be a NULL pointer.
28 Comparing two strings using strcmp() after strxfrm() is equal to compar-
29 ing two original strings with strcoll().
32 dst - the destination string's buffer
33 src - the source string
34 n - the size of the dst buffer.
37 Upon successful completion, strxfrm() returns the length of the trans-
38 formed string not including the terminating null character. If this
39 value is n or more, the contents of dst are indeterminate.
42 stdc.library only support "C" locale so strxfrm is equivalent to
53 ******************************************************************************/
55 size_t srclen
= strlen(src
);