Back to index

python3.2  3.2.2
Classes | Functions | Variables
ctypes.test.test_funcptr Namespace Reference

Classes

class  CFuncPtrTestCase

Functions

def c_string
 strtok.argtypes = (c_char_p, c_char_p) strtok.argtypes = (c_string, c_char_p)

Variables

 WINFUNCTYPE = CFUNCTYPE
tuple lib = CDLL(_ctypes_test.__file__)
string s = "a\nb\nc"
tuple b = c_string(s)

Function Documentation

strtok.argtypes = (c_char_p, c_char_p) strtok.argtypes = (c_string, c_char_p)

Definition at line 110 of file test_funcptr.py.

00110 
00111         def c_string(init):
00112             size = len(init) + 1
00113             return (c_char*size)(*init)

Here is the caller graph for this function:


Variable Documentation

Definition at line 115 of file test_funcptr.py.

tuple ctypes.test.test_funcptr.lib = CDLL(_ctypes_test.__file__)

Definition at line 11 of file test_funcptr.py.

Definition at line 114 of file test_funcptr.py.

Definition at line 8 of file test_funcptr.py.