Attached there is a patch sketching PyString_AsStringAndSize.
the function takes two output parameters and returns 0 in case of success, -1 on failure. I've only implemented the return value; as a result, the buffer seems uninitialized downstream.
Is there an example of a function handling output parameters where to get hint about how to implement it?
Attached there is a patch sketching PyString_AsStringAndSize.
the function takes two output parameters and returns 0 in case of success, -1 on failure. I've only implemented the return value; as a result, the buffer seems uninitialized downstream.
Is there an example of a function handling output parameters where to get hint about how to implement it?
api doc: http://docs.python.org/c-api/string.html#PyString_AsStringAndSize