MySQL 9.3 C API Developer Guide / Writing C API-Based Client Applications / Example C API Client Programs
Many of the clients in MySQL source distributions are written in C, such asmysql,mysqladmin, andmysqlshow. If you are looking for examples that demonstrate how to use the C API, take a look at those clients: Obtain a source distribution and look in itsclient directory. SeeHow to Get MySQL.
For information about individual C API functions, the sections for most functions include usage examples.