A MySQL api question

I’m integrating SQL database access into a C++ project via the MySQL api.

What I need is a way to extract the column names from a given table - does anyone know how to do this?

C’mon, someone must know how to do this!

mysql_fetch_field
mysql_fetch_fields