1.TH strxfrm 3 scc\-VERSION2.SH NAME3strxfrm - transform a string for locale-aware comparison4.SH SYNOPSIS5#include <string.h>67size_t strxfrm(char *restrict s1, const char *restrict s2, size_t n)8.SH DESCRIPTION9The10.BR strxfrm ()11function transforms the string at12.I s213and writes the result into the array at14.IR s1 .15The transformation is defined such that applying16.B strcmp17to two transformed strings yields the same ordering as applying18.B strcoll19to the corresponding original strings.20.PP21At most22.I n23characters, including the terminating null byte,24are written to25.IR s1 .26When27.I n28is zero,29.I s130may be a null pointer.31.PP32Overlapping source and destination regions produce undefined behavior.33.SH RETURN VALUE34The35.BR strxfrm ()36function returns the length of the transformed string,37not counting the terminating null byte.38If the returned value is39.I n40or greater, the content of41.I s142is indeterminate.43.SH STANDARDS44ISO/IEC 9899:1999 Section 7.21.4.5