Get the member from svn_string_t structure

Hi all,

am using vc 6.0 on windows.

I need to print the data value of the svn_string_t structure.

typedef struct svn_string_t
{
const char *data; /**< pointer to the bytestring */
apr_size_t len; /**< length of bytestring */
} svn_string_t;


svn_string_t **result;

i have used result->data ------ it shows error "error C2227: left of '->data' must point to class/struct/union"

then how can i get data value. or how can i convert to CString.

Thanks in advance
result is a pointer to a pointer so you have to dereference it one extra time. (*result)->data

I don't know if that is exactly what you want. I don't know the reason why you use a pointer to a pointer. Is it because result points to an array of pointers? In that case you probably want to specify the array index. result[i]->data
Topic archived. No new replies allowed.