summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmc <>2007-02-19 19:09:27 +0000
committerjmc <>2007-02-19 19:09:27 +0000
commit59c0deab96f8cc06bc5dfb59a5351105098a8824 (patch)
tree84a67eeae8be60eae596b830237b7acb190f02ae
parent7d44917b716412c71e8fbaeee73ac32c9187dd60 (diff)
downloadopenbsd-59c0deab96f8cc06bc5dfb59a5351105098a8824.tar.gz
openbsd-59c0deab96f8cc06bc5dfb59a5351105098a8824.tar.bz2
openbsd-59c0deab96f8cc06bc5dfb59a5351105098a8824.zip
from hubertf@netbsd:
Try to tell what this really does. Including a BUGS section on why it doesn't. *roff code by wiz@, with some input from Slava Semushin <slava.semushin@gmail.com> ok millert
-rw-r--r--src/lib/libc/string/strxfrm.324
1 files changed, 18 insertions, 6 deletions
diff --git a/src/lib/libc/string/strxfrm.3 b/src/lib/libc/string/strxfrm.3
index 008bd611e4..b59130730f 100644
--- a/src/lib/libc/string/strxfrm.3
+++ b/src/lib/libc/string/strxfrm.3
@@ -29,7 +29,7 @@
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE. 30.\" SUCH DAMAGE.
31.\" 31.\"
32.\" $OpenBSD: strxfrm.3,v 1.5 2005/08/12 18:34:32 jmc Exp $ 32.\" $OpenBSD: strxfrm.3,v 1.6 2007/02/19 19:09:27 jmc Exp $
33.\" 33.\"
34.Dd June 29, 1991 34.Dd June 29, 1991
35.Dt STRXFRM 3 35.Dt STRXFRM 3
@@ -42,12 +42,19 @@
42.Ft size_t 42.Ft size_t
43.Fn strxfrm "char *dst" "const char *src" "size_t n" 43.Fn strxfrm "char *dst" "const char *src" "size_t n"
44.Sh DESCRIPTION 44.Sh DESCRIPTION
45The 45The idea of
46.Fn strxfrm 46.Fn strxfrm
47function does something horrible (see 47is to
48.Tn ANSI 48.Dq un-localize
49standard). 49a string: the function transforms
50In this implementation it just copies. 50.Ar src ,
51storing the result in
52.Ar dst ,
53such that
54.Xr strcmp 3
55transformed strings return what
56.Xr strcoll 3
57on the original untransformed strings would return.
51.Sh SEE ALSO 58.Sh SEE ALSO
52.Xr bcmp 3 , 59.Xr bcmp 3 ,
53.Xr memcmp 3 , 60.Xr memcmp 3 ,
@@ -60,3 +67,8 @@ The
60.Fn strxfrm 67.Fn strxfrm
61function conforms to 68function conforms to
62.St -ansiC . 69.St -ansiC .
70.Sh BUGS
71Since locales are not fully implemented on
72.Ox ,
73.Fn strxfrm
74just returns a copy of the original string.