我将C API> Java和我有下面的函数原型。
/*
Retrieves an individual field value from the current Line
\param reader pointer to Text Reader object.
\param field_num relative field [aka column] index: first field has index 0.
\param type on completion this variable will contain the value type.
\param value on completion this variable will contain the current field value.
\return 0 on failure: any other value on success.
*/
extern int gaiaTextReaderFetchField (gaiaTextReaderPtr reader, int field_num, int *type, const char **value);
我想获得返回预期的状态,请返回“类型”为int和“价值”作为字符串(不被释放)
从技术文档我发现你创建一对夫妇可以保留返回值结构中。
可能有人请帮助使这第一个和我在一起?