Commit 56a00a7d authored by Guillaume Seguin's avatar Guillaume Seguin

Use libc.string imports instead of custom declarations

parent 9b5229a4
...@@ -15,10 +15,7 @@ ...@@ -15,10 +15,7 @@
from libc.stdlib cimport malloc, free from libc.stdlib cimport malloc, free
from libc.stdint cimport uint32_t from libc.stdint cimport uint32_t
from libc.string cimport strlen, strncpy
cdef extern from "string.h":
char *strncpy(char *dest, char *src, size_t n)
size_t strlen(const char *s)
cdef char* copy_string(object value): cdef char* copy_string(object value):
cdef char* orig = value cdef char* orig = value
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment