T
Tatu Portin
Have this kind of struct:
typedef struct {
char **user_comments;
/* ... */
} vorbis_comment;
/* prototype */
char * read_vorbis_string
( FILE *sc);
/* problem */
vc.user_comments = read_vorbis_string (sc);
'read_vorbis_string' returns a pointer to a calloced string. This function
works for sure.
But the problem is, that 'vc.user_comments = string;' is not the right way
to assing the address of the 'string' to the pointer array 'vc.user_comments'.
What is?
typedef struct {
char **user_comments;
/* ... */
} vorbis_comment;
/* prototype */
char * read_vorbis_string
( FILE *sc);
/* problem */
vc.user_comments = read_vorbis_string (sc);
'read_vorbis_string' returns a pointer to a calloced string. This function
works for sure.
But the problem is, that 'vc.user_comments = string;' is not the right way
to assing the address of the 'string' to the pointer array 'vc.user_comments'.
What is?