I have a DLL with a function of the following form:
void Foo ( int * i, char ** s )
{
if ( *i > (int)(strlen(date_string) + strlen(time_string) + 2) )
sprintf ( *s, "%s %s", time_string, date_string );
}
where
char date_string[] = { __DATE__ };
char time_string[] = { __TIME__ };
But adapting the method used here:
Python and ctypes: how to correctly pass "pointer-to-pointer" into DLL?
by using:
i = c_int(22)
s = POINTER(c_byte)()
Foo(byref(i),byref(s))
just results in the interpreter not producing any output. Does anyone know what I'm doing wrong?