On 20/12/2007, joe shoemaker <joemystery123@stripped> wrote:
> Hello, I need help with MySQL C API to read ~/.my.cnf config options.
Then you should ask on a list for the C API (or the general mysql
list) because this list is for the C++ API.
I see you modify argc/argv to read the options from .my.cnf but you
don't do anything with those arguments, you pass the opt_user,
opt_password, etc. pointers which are still NULL. That would explain
your results. I expect that chapter of the Dubois book will show you
how to make the code work.