def _c_string_literal(s):
    """
    Convert a python string into a literal suitable for inclusion into C code
    """
    s = s.replace('\\', '\\\\')
    s = s.replace('"', '\\"')
    s = s.replace('\n', '\\n')
    return '"{}"'.format(s)
