d_create_tab.c

Go to the documentation of this file.
00001 #include <stdlib.h>
00002 #include <grass/dbmi.h>
00003 #include "macros.h"
00004 #include "dbstubs.h"
00005 
00012 int
00013 db_d_create_table()
00014 {
00015     dbTable *table;
00016     int stat;
00017 
00018 /* get the arg(s) */
00019     DB_RECV_TABLE_DEFINITION(&table);
00020 
00021 /* call the procedure */
00022     stat = db_driver_create_table (table);
00023     db_free_table (table);
00024 
00025 /* send the return code */
00026     if (stat != DB_OK)
00027     {
00028         DB_SEND_FAILURE();
00029         return DB_OK;
00030     }
00031     DB_SEND_SUCCESS();
00032 
00033 /* no results */
00034     return DB_OK;
00035 }

Generated on Sun Apr 6 17:31:38 2008 for GRASS by  doxygen 1.5.5