Re: closing database (mysql C API)

2002-12-07 Thread Paul DuBois
At 14:37 -0800 12/7/02, Admin-Stress wrote: Hi, I wrote an application using mysql C API. If I exit my application without closing database, will it be closed You don't "close" a database. What do you mean? Do you mean close the connection to the server? If so, exiting without closing is th

closing database (mysql C API)

2002-12-07 Thread Admin-Stress
Hi, I wrote an application using mysql C API. If I exit my application without closing database, will it be closed automatically? void error(int code) { printf("error: %d\n", code); exit(0); } int main() { ... error(-255); ... } How to pass the mysql database connector to a function? is