Utlities for writing a MySQL client in C