ex2.c

Example for using sqlo_count

00001 /* $Id: ex2.c 221 2002-08-24 12:54:47Z kpoitschke $ */
00002 #include <stdio.h>
00003 #include <stdlib.h>
00004 #include "examples.h"
00005 
00006 int col_count(sqlo_db_handle_t dbh, char * table_name)
00007 {
00008   int stat;
00009   if ( 0 > (stat = sqlo_count(dbh, "USER_TAB_COLUMNS", "TABLE_NAME", table_name, NULL))) {
00010     error_exit(dbh, "sqlo_count");
00011   }
00012   return stat;
00013 }
00014 
00015 /* $Id: ex2.c 221 2002-08-24 12:54:47Z kpoitschke $ */

Generated on Mon May 21 13:42:17 2007 for libsqlora8 by  doxygen 1.4.7