diff options
Diffstat (limited to 'docs/examples/tutorial/external/atoi.pyx')
-rw-r--r-- | docs/examples/tutorial/external/atoi.pyx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/examples/tutorial/external/atoi.pyx b/docs/examples/tutorial/external/atoi.pyx index 96a67d73c..ef1219854 100644 --- a/docs/examples/tutorial/external/atoi.pyx +++ b/docs/examples/tutorial/external/atoi.pyx @@ -1,5 +1,6 @@ from libc.stdlib cimport atoi + cdef parse_charptr_to_py_int(char* s): assert s is not NULL, "byte string value is NULL" return atoi(s) # note: atoi() has no error detection! |