INtime SDK Help
swab

Copies while swapping bytes.

#include <stdlib.h>

void swab (const char *src, char *dest, int n);

Parameters

src
Points to the source buffer.
dest
Points to a buffer to which the source buffer is copied, with each pair of bytes swapped.
n
The number of bytes to be copied.

Remarks

Use swab to copy n bytes from the src buffer while swapping each pair of adjacent bytes.

If n is odd, the last byte is copied directly from the src buffer to the dest buffer, with no byte swapping.

Return Values

Nothing.

Requirements

Versions Defined in Include Link to
INtime 3.0 intime/rt/include/stdlib.h stdlib.h clib.lib