/* acro.h */ #ifndef ACRO_H #define ACRO_H #include const int STR_EQ = 0; const int LOOK_UP = 0; const int SHOW_ALL = 1; #define STR_LEN 80 void print_mysql_error(MYSQL *connection); void print_result(MYSQL_RES *result); void send_query(MYSQL *connection, char acro[]); void print_all(MYSQL_RES *result, char acro[]); void clean_and_exit(MYSQL_RES *result, MYSQL *connection); void send_query_show_all(MYSQL *connection); void execute_query(MYSQL *connection, char query[]); void get_credentials(char host[], char name[], char passwd[], char db[]); int main(int argc, char** argv); #endif