home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / ansi / string / memmove.txh < prev    next >
Encoding:
Text File  |  1995-07-10  |  548 b   |  28 lines

  1. @node memmove, memory
  2. @subheading Syntax
  3.  
  4. @example
  5. #include <string.h>
  6.  
  7. void *memmove(void *dest, const void *source, int num);
  8. @end example
  9.  
  10. @subheading Description
  11.  
  12. This function copies @var{num} bytes from @var{source} to @var{dest}. 
  13. The copy is done in such a way that if the two regions overlap, the
  14. source is always read before that byte is changed by writing to the
  15. destination. 
  16.  
  17. @subheading Return Value
  18.  
  19. @var{dest}
  20.  
  21. @subheading Example
  22.  
  23. @example
  24. memmove(buf+1, buf, 99);
  25. memmove(buf, buf+1, 99);
  26. @end example
  27.  
  28.