I am trying to load time.h directly using Cython instead of Python import time , but it does not work.
All I get is a mistake
Call with wrong number of arguments (expected 1, got 0)
with the following code
cdef extern from "time.h" nogil: ctypedef int time_t time_t time(time_t*) def test(): cdef int ts ts = time() return ts
and
Cannot assign type 'long' to 'time_t *'
with the following code
cdef extern from "time.h" nogil: ctypedef int time_t time_t time(time_t*) def test(): cdef int ts ts = time(1) return ts
with a math journal i can just do
cdef extern from "math.h": double log10(double x)
How is this possible with time ?
source share