def from_c_string(cstr):
    return cstr[:cstr.find('\x00')]
Helper method for for subprocess.Popen to initialise uid/gid and umask
dataset/ETHPy150Open thesamet/webilder/src/webilder/webshots/fileutil.py/from_c_string--crossover with--dataset/ETHPy150Open saltstack/salt/salt/utils/__init__.py/chugid_and_umask