NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | ATTRIBUTES | SEE ALSO
$(NUCLEUS_DIR)/lib/classix/libsys.s.a #include <string.h>void swab(const void *src, void *dst, size_t len);
The function or functions documented here may not be used safely in all application contexts with all APIs provided in the ChorusOS 5.0 product.
See API(5FEA) for details.
The swab() function copies nbytes bytes, which are pointed to by src, to the object pointed to by dst, exchanging adjacent bytes. The len argument should be even. If len is odd, swab() copies and exchanges len-1 bytes and the disposition of the last byte is unspecified. Copying between objects that overlap can lead to unpredictable results. If len is negative, swab() does nothing.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | ATTRIBUTES | SEE ALSO