Look at the source for the mysql client.
It is a perfect example.
Sean Macmillan wrote:
Using the C API I have written a program that calls mysql_query() on a
table with values I know to be in the table. It returns fine and I
then call mysql_store_result. The problem I am having is figuring ou
Using the C API I have written a program that calls mysql_query() on a
table with values I know to be in the table. It returns fine and I
then call mysql_store_result. The problem I am having is figuring out
how to dump the contents of that query to the screen (printf for
example). I have tr