It most likely returns a c-string which size will be set to outSize.
If that is the case you could achieve what you want like so:
char buffer[256];
int32_t copiedChars;
int iValue;
std::stringstream ss;
dbInput("Enter some integer: ", buffer, &copiedChars);
buffer[copiedChars] = 0; // Ensure that the copied string is null-terminated
ss << buffer; // Write the input string to the stringstream
ss >> iValue; // Read (the first) value possible to be interpreted as an int from the stringstream
// Do whatever you want with the value here
Note: the above code is just written on the fly and not tested, as such it might contain errors. It displays the general approach to doing it even should it not work as-is thouogh.
"Why do programmers get Halloween and Christmas mixed up?" Because Oct(31) = Dec(25)