home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / compat / stdlib / swab.txh < prev    next >
Encoding:
Text File  |  1995-07-10  |  563 b   |  22 lines

  1. @node swab, memory
  2. @subheading Syntax
  3.  
  4. @example
  5. #include <stdlib.h>
  6.  
  7. void swab(const void *from, void *to, int nbytes);
  8. @end example
  9.  
  10. @subheading Description
  11.  
  12. This function copies @var{nbytes} bytes from the address pointed to by
  13. @var{from} to the address pointed by @var{to}, exchanging adjacent even
  14. and odd bytes.  It is useful for carrying binary data between
  15. little-endian and big-endian machines.  The argument @var{nbytes} should
  16. be even, and the buffers @var{from} and @var{to} should not overlap.
  17.  
  18. @subheading Return Value
  19.   
  20. None.
  21.  
  22.