I was hoping someone would be able to tell me if I'm right or wrong, with my following code.
I'm trying to print the returned data from the function mpg123_decoders(), which is of the value char** (or "a NULL-terminated array of the decoders supported by the CPU").
const char ** pdecoders;
pdecoders = mpg123_decoders();
do {
con_msg(MSG_BAD, "%s\n", *pdecoders);
pdecoders += 1;
} while(*pdecoders != NULL);
I'm not convinced that my following code does it correctly, as I'm sure there are more available decoders.
pdecoders += 1really work on a const char **?