List:General Discussion« Previous MessageNext Message »
From:Paul DuBois Date:December 10 2000 7:36pm
Subject:Re: Msql-C fn update_defaults()
View as plain text  
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
Thread
Msql-C fn update_defaults()Gary10 Dec
  • Re: Msql-C fn update_defaults()Paul DuBois10 Dec
  • Re: Msql-C fn update_defaults()Gustavo Vieira Goncalves Coelho Rios10 Dec
    • Re: Msql-C fn update_defaults()Paul DuBois10 Dec