I have a C api function with the following prototype which I wish to call from Python 2.6/2.7 via the ctypes module.
C function :
int function_name( char *outputbuffer, int outputBufferSize,
const char *input, const char *somestring2 );
Here outputbuffer is a kind of string buffer in which a string is to be inserted as the output once this function is called on the basis of input and somestring2.
How do we create this buffer (output buffer) in python and what would be the argtype for this function