]> git.saurik.com Git - wxWidgets.git/blob - wxPython/wxSWIG/swig_lib/memory.i
Since I have made several changes to SWIG over the years to accomodate
[wxWidgets.git] / wxPython / wxSWIG / swig_lib / memory.i
1 //
2 // memory.i
3 // Dave Beazley
4 // November 30, 1996
5 // SWIG file for memory operations
6 //
7
8 %module memory
9 %{
10 #include <string.h>
11 %}
12
13 %section "Memory Manipulation Module",after,info,nosort,pre,chop_left=3,chop_bottom=0,chop_top=0,chop_right=0,skip=1
14
15 %text %{
16 %include memory.i
17
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 *.
21 %}
22
23 void *memcpy(void *s, const void *ct, int n);
24 /* Copy n characters from ct to s, and return s */
25
26 void *memmove(void *s, const void *ct, int n);
27 /* Same as memcpy except that it works even if the objects overlap. */
28
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. */
32
33 void *memchr(const void *cs, char c, int n);
34 /* Returns pointer to the first occurrence of character c in cs. */
35
36 void *memset(void *s, char c, int n);
37 /* Place character c into first n characters of s, return s */
38
39