def from_c_string(cstr):
    return cstr[:cstr.find('\x00')]
Returns the substring of the given string until the first NUL (chr(0))
dataset/ETHPy150Open thesamet/webilder/src/webilder/webshots/fileutil.py/from_c_string