* Sergei Golubchik <serg@stripped> [07/12/07 23:52]:
OK, so I dug up the book by Paul.
Here's the chapter in question:
http://www.informit.com/articles/article.aspx?p=30494&seqNum=5&rl=1
Here's the famous example:
#include <stdio.h>
#include <mysql.h>
char *groups[] = { "client", NULL };
int
main (int argc, char *argv[])
{
int i;
my_init ();
printf ("Original argument vector:\n");
for (i = 0; i < argc; i++)
printf ("arg %d: %s\n", i, argv[i]);
load_defaults ("my", groups, &argc, &argv);
printf ("Modified argument vector:\n");
for (i = 0; i < argc; i++)
printf ("arg %d: %s\n", i, argv[i]);
exit (0);
}
As you can see, the example refers to my_init().
my_init() is no more included in mysql.h, as of 5.1, just as well.
--
-- Konstantin Osipov Software Developer, Moscow, Russia
-- MySQL AB, www.mysql.com The best DATABASE COMPANY in the GALAXY