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 として、「値」を文字列として返します (割り当て解除されません)。
ドキュメントから、戻り値を保持できるいくつかの構造体を作成することがわかりました。
誰か私と一緒にこの最初のものを作るのを手伝ってくれませんか?