SWAB(3) Library Functions Manual SWAB(3)NAME
swab - swap bytes
swab(from, to, nbytes)
char *from, *to;
Swab copies nbytes bytes pointed to by from to the position pointed to by to, exchanging adjacent even and odd bytes. It is useful for
carrying binary data between PDP11's and other machines. Nbytes should be even.
7th Edition May 15, 1985 SWAB(3)
Check Out this Related Man Page
SWAB(3P) POSIX Programmer's Manual SWAB(3P)PROLOG
This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the correspond-
ing Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.
swab -- swap bytes
void swab(const void *restrict src, void *restrict dest,
The swab() function shall copy nbytes bytes, which are pointed to by src, to the object pointed to by dest, exchanging adjacent bytes. The
nbytes argument should be even. If nbytes is odd, swab() copies and exchanges nbytes-1 bytes and the disposition of the last byte is
unspecified. If copying takes place between objects that overlap, the behavior is undefined. If nbytes is negative, swab() does nothing.
No errors are defined.
The following sections are informative.
The Base Definitions volume of POSIX.1-2008, <unistd.h>
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1, 2013 Edition, Standard for Information Technol-
ogy -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, Copyright (C) 2013 by the Institute of
Electrical and Electronics Engineers, Inc and The Open Group. (This is POSIX.1-2008 with the 2013 Technical Corrigendum 1 applied.) In the
event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Stan-
dard is the referee document. The original Standard can be obtained online at http://www.unix.org/online.html .
Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source
files to man page format. To report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .
IEEE /The Open Group 2013 SWAB(3P)
I met this week a problem.
For now, we used TRU64 system based on alpha. Now, we're installing UP-UX systems (on Itanium). And we have problem with our files. Indeed, we use file with COMP-3, COMP-5 data. These files are used on both platforms. (we use also TXT files which... (1 Reply)
I hope someone can provide some suggestions on my problem.
I'm trying to read some catridge tapes created (tar or dd format) from SUN or SGI onto an ancient AT&T Unix System V/386 Rel 3.2 machine. But everything I tried to read in the tape on the AT&T machine there is this error message... (1 Reply)
I have a following code ,I need to send two files on FTP server using single code
FTIHOST=$(echo... (3 Replies)
I have Solaris 10 U13 and I try to burn an ISO image.
# cdrw -i myfile.iso
Looking for CD devices...
Device not ready.
# cdrecord dev=0,0,0 -v -multi -pad -data myfile.iso
cdrecord: No write mode specified.
cdrecord: Asuming -tao mode.... (3 Replies)
I am interested if there is the global internet network I can find free access to the Linux or unix server to create the own account to have some practice.
Thanks a lot for your advice and comments.
Dembi (2 Replies)