Convert a Python string to C string.
(string)
| 122 | |
| 123 | |
| 124 | def c_str(string): |
| 125 | """Convert a Python string to C string.""" |
| 126 | return ctypes.c_char_p(string.encode('utf-8')) |
| 127 | |
| 128 | |
| 129 | def c_array(ctype, values): |
no outgoing calls
no test coverage detected