At 5:24 PM +0000 12/10/00, Gustavo Vieira Goncalves Coelho Rios wrote:
>Gary wrote:
>>
>> trying to program in C w/example from Paul Dubois book Mysql.
>>
>> show_argv.c
>>
>> ....
>> char *groups[] = {"client", NULL};
>> int
>> main(int argc, char *argv[]);
>> ....
>> load_defaults ("my", groups, &argc, &argv);
>>
>> .....
>>
>> compiler error - arg 2 in load_defaults wrong type. have tried &groups,
>> groups[] w/no sucess. any ideas?
>>
>
>Why don't you post the functino prototype?
load_defaults() is in the MySQL client library, the prototype is in
in mysql_com.h.
void load_defaults(const char *conf_file, const char **groups,
int *argc, char ***argv);
--
Paul DuBois, paul@stripped