parameters: (s)
return_statement: return '"{}"'.format(s)
docstring: Convert a python string into a literal suitable for inclusion into C code
docstring_summary: Convert a python string into a literal suitable for inclusion into C code
docstring_tokens: Convert a python string into a literal suitable for inclusion into C code
function: def _c_string_literal(s):
      """
      Convert a python string into a literal suitable for inclusion into C code
      """
      # only these three characters are forbidden in C strings
      s = s.replace('\\', r'\\')
      s = s.replace('"',  r'\"')
      s = s.replace('\n', r'\n')
      return '"{}"'.format(s)
function_tokens: def _c_string_literal ( s ) : # only these three characters are forbidden in C strings s = s . replace ( '\\' , r'\\' ) s = s . replace ( '"' , r'\"' ) s = s . replace ( '\n' , r'\n' ) return '"{}"' . format ( s )