from ctypes import *


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