3 <<strxfrm>>---transform string
10 size_t strxfrm(char *<[s1]>, const char *<[s2]>, size_t <[n]>);
14 size_t strxfrm(<[s1]>, <[s2]>, <[n]>);
20 This function transforms the string pointed to by <[s2]> and
21 places the resulting string into the array pointed to by
22 <[s1]>. The transformation is such that if the <<strcmp>>
23 function is applied to the two transformed strings, it returns
24 a value greater than, equal to, or less than zero,
25 correspoinding to the result of a <<strcoll>> function applied
26 to the same two original strings.
28 No more than <[n]> characters are placed into the resulting
29 array pointed to by <[s1]>, including the terminating null
30 character. If <[n]> is zero, <[s1]> may be a null pointer. If
31 copying takes place between objects that overlap, the behavior
34 With a C locale, this function just copies.
37 The <<strxfrm>> function returns the length of the transformed string
38 (not including the terminating null character). If the value returned
39 is <[n]> or more, the contents of the array pointed to by
40 <[s1]> are indeterminate.
43 <<strxfrm>> is ANSI C.
45 <<strxfrm>> requires no supporting OS subroutines.
54 _DEFUN (strxfrm
, (s1
, s2
, n
),
63 if ((*s1
++ = *s2
++) != '\0')