OpenBSD manual page server

Manual Page Search Parameters

STRXFRM(3) Library Functions Manual STRXFRM(3)

strxfrmtransform a string under locale

#include <string.h>

size_t
strxfrm(char *dst, const char *src, size_t n);

The idea of () is to “un-localize” a string: the function transforms src, storing the result in dst, such that strcmp(3) on transformed strings returns what strcoll(3) on the original untransformed strings would return.

bcmp(3), memcmp(3), setlocale(3), strcasecmp(3), strcmp(3), strcoll(3)

The strxfrm() function conforms to ANSI X3.159-1989 (“ANSI C89”).

The strxfrm() function first appeared in 4.3BSD-Reno.

Since locales are not fully implemented on OpenBSD, strxfrm() just returns a copy of the original string.

June 5, 2013 OpenBSD-6.1