clibblah = ctypes.cdll.LoadLibrary('clibblah.dylib')
get_pixels = clibblah.get_pixels
get_pixels.restype = ctypes.POINTER(ctypes.c_char)
pixels = get_pixels()
num_pixels = clibblah.get_pixel_length()
a = pixels[:num_pixels]
How do you convert a char * with 0-value bytes into a python string?