Scripting
Read More
Howto: Connect MySQL server using C program API under Linux or UNIX
Many of the clients in the MySQL source distribution are written in C. If you are looking for examples that demonstrate how to use the C API, take a look at these clients. You can find these in the clients directory in the MySQL source distribution.