*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: swab | Section: 3 | Source: Digital UNIX | File: swab.3.gz
swab(3) Library Functions Manual swab(3) NAME swab - Swaps bytes LIBRARY Standard C Library (libc.so, libc.a) SYNOPSIS #include <unistd.h> void swab( const void *src, void *dest, ssize_t nbytes); The following definition of the swab() function does not conform to current standards and is supported only for System V compatibility: void swab( const char *from, char *to, int nbytes); STANDARDS Interfaces documented on this reference page conform to industry stan- dards as follows: swab(): XPG4, XPG4-UNIX Refer to the standards(5) reference page for more information about in- dustry standards and associated tags. PARAMETERS Points to the location of the string to copy. Points to the location to which the resulting string is copied. Specifies the number of bytes to be copied. The nbytes parameter should have an even value. When the nbytes parameter is odd, the swab() function uses nbytes-1 instead. For the System V version of the swab() function, nbytes must also be non-negative. If nbytes is negative, nothing is done. DESCRIPTION The swab() function copies the number of bytes specified by the nbytes parameter from the location pointed to by the src parameter to the ar- ray pointed to by the dest parameter, exchanging adjacent bytes. If copying takes place between objects that overlap, the behavior is unde- fined. RELATED INFORMATION Standards: standards(5) delim off swab(3)

Navigation Options