char*** value

I need to use an API/function that requires a parameter of type char*** value.
How do I declare this variable - some kind of character array.


Thanks
I'm going to take a wild guess here and say you'd declare a char*** like so:

 
char*** value;


=P

But seriously, it would help to have some context. Can you post the function and explain what it's supposed to do?
Here's the function:
1
2
3
4
5
6
7
8
/**
    Asks all the values of the preference whose data type is char.
*/
extern TC_API int PREF_ask_char_values(
    const char*     preference_name,    /**< (I) Preference name */
    int*            count,                            /**< (O) Number of values in the value array */
    char***         value                         /**< (OF) count Array of returned values */
    );


So.... let me know what you think.

Thanks....
My guess:

1
2
3
4
5
6
7
8
9
10
11
char** some_strings;
int string_count;

PREF_ask_char_values(
    "Some Preference thing",
    &string_count,
    &some_strings
    );

for(int i = 0; i < string_count; ++i)
  cout << some_strings[i] << endl;
Thanks....
let me try that out.

Topic archived. No new replies allowed.