swab man page on DigitalUNIX

Man page or keyword search:  
man Server   12896 pages
apropos Keyword Search (all sections)
Output format
DigitalUNIX logo
[printable version]

swab(3)								       swab(3)

NAME
       swab - Swap bytes

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 );

LIBRARY
       Standard C Library (libc)

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
       industry 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
       array pointed to by the dest parameter, exchanging adjacent  bytes.  If
       copying takes place between objects that overlap, the behavior is unde‐
       fined.

SEE ALSO
       Standards: standards(5)

								       swab(3)
[top]

List of man pages available for DigitalUNIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net