summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/swab.3
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/string/swab.3')
-rw-r--r--lib/libc/string/swab.35
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libc/string/swab.3 b/lib/libc/string/swab.3
index f8ef34e..0c9deea 100644
--- a/lib/libc/string/swab.3
+++ b/lib/libc/string/swab.3
@@ -28,7 +28,7 @@
.\" @(#)swab.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
-.Dd December 10, 2004
+.Dd March 4, 2012
.Dt SWAB 3
.Os
.Sh NAME
@@ -54,6 +54,9 @@ swapping adjacent bytes.
The argument
.Fa len
must be an even number.
+If
+.Fa len
+is less than zero, nothing will be done.
.Sh SEE ALSO
.Xr bzero 3 ,
.Xr memset 3
OpenPOWER on IntegriCloud