|
|
1.1 ! root 1: .\" Copyright (c) 1990 The Regents of the University of California. ! 2: .\" All rights reserved. ! 3: .\" ! 4: .\" Redistribution and use in source and binary forms are permitted ! 5: .\" provided that: (1) source distributions retain this entire copyright ! 6: .\" notice and comment, and (2) distributions including binaries display ! 7: .\" the following acknowledgement: ``This product includes software ! 8: .\" developed by the University of California, Berkeley and its contributors'' ! 9: .\" in the documentation or other materials provided with the distribution ! 10: .\" and in all advertising materials mentioning features or use of this ! 11: .\" software. Neither the name of the University nor the names of its ! 12: .\" contributors may be used to endorse or promote products derived ! 13: .\" from this software without specific prior written permission. ! 14: .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR ! 15: .\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED ! 16: .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ! 17: .\" ! 18: .\" @(#)swab.3 6.3 (Berkeley) 5/17/90 ! 19: .\" ! 20: .TH SWAB 3 "May 17, 1990" ! 21: .AT 3 ! 22: .nf ! 23: .SH NAME ! 24: swab \- swap bytes ! 25: .SH SYNOPSIS ! 26: .nf ! 27: .ft B ! 28: #include <string.h> ! 29: ! 30: void ! 31: swab(const char *src, char *dst, size_t len); ! 32: .ft R ! 33: .fi ! 34: .SH DESCRIPTION ! 35: The function ! 36: .I swab ! 37: copies ! 38: .I len ! 39: bytes from the location referenced by ! 40: .I src ! 41: to the location referenced by ! 42: .IR dst , ! 43: swapping adjacent bytes. ! 44: .PP ! 45: .I Len ! 46: should be even. ! 47: .SH SEE ALSO ! 48: bzero(3), memset(3)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.