C API; queries within functions.

2001-05-21 Thread Seth Northrop
Hi! This is probably more of a C inadequacy than a MySQL problem. I'm playing around with C with MySQL (I have to date only interfaced with it in PHP) and I was curious if anyone had any example code which illustrates how you would write functions which return mysql data. For example, in PHP

Re: C API; queries within functions.

2001-05-21 Thread Eric Fitzgerald
the function like this: MYSQL_RES *result; result = doquery(connection, query); - Original Message - From: Seth Northrop [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 21, 2001 12:25 PM Subject: C API; queries within functions. Hi! This is probably more of a C inadequacy than