summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmc <>2022-09-28 20:27:12 +0000
committerjmc <>2022-09-28 20:27:12 +0000
commit891337e5a26a9faa47ed08abfbaeaf58e11c669c (patch)
treedba785666ea1d5da04b7b4ff8d51a83f84df8779
parente689045aa92403bda1b110ec413d27778c06eac2 (diff)
downloadopenbsd-891337e5a26a9faa47ed08abfbaeaf58e11c669c.tar.gz
openbsd-891337e5a26a9faa47ed08abfbaeaf58e11c669c.tar.bz2
openbsd-891337e5a26a9faa47ed08abfbaeaf58e11c669c.zip
use Fn rather than Nm for swab(); from josiah frentsos
-rw-r--r--src/lib/libc/string/swab.312
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libc/string/swab.3 b/src/lib/libc/string/swab.3
index 57afdd4d79..777f2833b6 100644
--- a/src/lib/libc/string/swab.3
+++ b/src/lib/libc/string/swab.3
@@ -25,9 +25,9 @@
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26.\" SUCH DAMAGE. 26.\" SUCH DAMAGE.
27.\" 27.\"
28.\" $OpenBSD: swab.3,v 1.9 2014/12/12 20:06:13 schwarze Exp $ 28.\" $OpenBSD: swab.3,v 1.10 2022/09/28 20:27:12 jmc Exp $
29.\" 29.\"
30.Dd $Mdocdate: December 12 2014 $ 30.Dd $Mdocdate: September 28 2022 $
31.Dt SWAB 3 31.Dt SWAB 3
32.Os 32.Os
33.Sh NAME 33.Sh NAME
@@ -42,9 +42,9 @@
42.Fa "ssize_t len" 42.Fa "ssize_t len"
43.Fc 43.Fc
44.Sh DESCRIPTION 44.Sh DESCRIPTION
45The function 45The
46.Fn swab 46.Fn swab
47copies 47function copies
48.Fa len 48.Fa len
49bytes from the location referenced by 49bytes from the location referenced by
50.Fa src 50.Fa src
@@ -55,7 +55,7 @@ swapping adjacent bytes.
55If 55If
56.Fa len 56.Fa len
57is zero or less, 57is zero or less,
58.Nm 58.Fn swab
59does nothing. 59does nothing.
60If it is odd, what happens to the last byte is unspecified. 60If it is odd, what happens to the last byte is unspecified.
61If 61If
@@ -68,7 +68,7 @@ overlap, behaviour is undefined.
68.Xr memset 3 68.Xr memset 3
69.Sh STANDARDS 69.Sh STANDARDS
70The 70The
71.Nm 71.Fn swab
72function is compliant with the X/Open System Interfaces option of the 72function is compliant with the X/Open System Interfaces option of the
73.St -p1003.1-2008 73.St -p1003.1-2008
74specification. 74specification.