www.delorie.com/djgpp/doc/libc-2.01/libc_632.html   search  
Go to the first, previous, next, last section, table of contents.


swab

Syntax

#include <stdlib.h>

void swab(const void *from, void *to, int nbytes);

Description

This function copies nbytes bytes from the address pointed to by from to the address pointed by to, exchanging adjacent even and odd bytes. It is useful for carrying binary data between little-endian and big-endian machines. The argument nbytes should be even, and the buffers from and to should not overlap.

Return Value

None.


Go to the first, previous, next, last section, table of contents.

  prev next   webmaster     delorie software   privacy  
  Copyright © 1997     Updated Apr 1997