from ctypes import *


class TEST_STRUCT(Structure):
    _fields_ = [('a', c_int), ('b', POINTER(c_char))]
name = create_string_buffer('test')
Issue with passing string from Python to C shared lib using ctypes