The bulk of this chapter consists of a list of C API functions in alphabetical order. Each function is given with its syntax and an explanation. For almost all functions, an example program, or excerpt, is provided to show how you can use the function. To save space, almost all of the excerpts are shown without the lines of code necessary to start a C program and to connect to MySQL, as well as to close the connection and to end the program. For an example on how you would write opening and closing lines, see the tutorial in the previous section. The examples in this section will tend to be more succinct and won’t usually include typical error checking. It’s assumed that the reader has a basic understanding of C. For the syntax of each function, the datatype expected is given before each parameter or argument.