5 // SWIG file for memory operations
 
  13 %section "Memory Manipulation Module",after,info,nosort,pre,chop_left=3,chop_bottom=0,chop_top=0,chop_right=0,skip=1
 
  18 This module provides support for a few memory operations from the C
 
  19 <string.h> library.  These functions can be used to manipulate binary
 
  20 data. s and t are of type void *, cs and ct are both of type const void *.
 
  23 void *memcpy(void *s, const void *ct, int n);
 
  24 /* Copy n characters from ct to s, and return s */
 
  26 void *memmove(void *s, const void *ct, int n);
 
  27 /* Same as memcpy except that it works even if the objects overlap. */
 
  29 int memcmp(const void *cs, const void *ct, int n);
 
  30 /* Compare the first n characters of cs with ct.  Returns 0 if
 
  31    they are equal, <0 if cs < ct, and >0 if cs > ct. */
 
  33 void *memchr(const void *cs, char c, int n);
 
  34 /* Returns pointer to the first occurrence of character c in cs. */
 
  36 void *memset(void *s, char c, int n);
 
  37 /* Place character c into first n characters of s, return s */