GRASS Programmer's Manual  6.4.1(2011)
d_create_tab.c
Go to the documentation of this file.
00001 
00015 #include <stdlib.h>
00016 #include <grass/dbmi.h>
00017 #include "macros.h"
00018 #include "dbstubs.h"
00019 
00026 int db_d_create_table(void)
00027 {
00028     dbTable *table;
00029     int stat;
00030 
00031     /* get the arg(s) */
00032     DB_RECV_TABLE_DEFINITION(&table);
00033 
00034     /* call the procedure */
00035     stat = db_driver_create_table(table);
00036     db_free_table(table);
00037 
00038     /* send the return code */
00039     if (stat != DB_OK) {
00040         DB_SEND_FAILURE();
00041         return DB_OK;
00042     }
00043     DB_SEND_SUCCESS();
00044 
00045     /* no results */
00046     return DB_OK;
00047 }
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines