diff options
| author | jmc <> | 2007-02-19 19:09:27 +0000 |
|---|---|---|
| committer | jmc <> | 2007-02-19 19:09:27 +0000 |
| commit | 59c0deab96f8cc06bc5dfb59a5351105098a8824 (patch) | |
| tree | 84a67eeae8be60eae596b830237b7acb190f02ae /src/lib/libc | |
| parent | 7d44917b716412c71e8fbaeee73ac32c9187dd60 (diff) | |
| download | openbsd-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
Diffstat (limited to 'src/lib/libc')
| -rw-r--r-- | src/lib/libc/string/strxfrm.3 | 24 |
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 |
| 45 | The | 45 | The idea of |
| 46 | .Fn strxfrm | 46 | .Fn strxfrm |
| 47 | function does something horrible (see | 47 | is to |
| 48 | .Tn ANSI | 48 | .Dq un-localize |
| 49 | standard). | 49 | a string: the function transforms |
| 50 | In this implementation it just copies. | 50 | .Ar src , |
| 51 | storing the result in | ||
| 52 | .Ar dst , | ||
| 53 | such that | ||
| 54 | .Xr strcmp 3 | ||
| 55 | transformed strings return what | ||
| 56 | .Xr strcoll 3 | ||
| 57 | on 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 |
| 61 | function conforms to | 68 | function conforms to |
| 62 | .St -ansiC . | 69 | .St -ansiC . |
| 70 | .Sh BUGS | ||
| 71 | Since locales are not fully implemented on | ||
| 72 | .Ox , | ||
| 73 | .Fn strxfrm | ||
| 74 | just returns a copy of the original string. | ||
