GRASS Programmer's Manual
6.5.svn(2014)-r66266
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
d_drop_tab.c
Go to the documentation of this file.
1
15
#include <stdlib.h>
16
#include <grass/dbmi.h>
17
#include "
macros.h
"
18
#include "
dbstubs.h
"
19
26
int
db_d_drop_table
(
void
)
27
{
28
dbString
name
;
29
int
stat
;
30
31
db_init_string
(&name);
32
33
/* get the argument(s) to the procedure */
34
DB_RECV_STRING
(&name);
35
36
/* call the procedure */
37
stat =
db_driver_drop_table
(&name);
38
39
db_free_string
(&name);
40
41
/* send the return code */
42
if
(stat != DB_OK) {
43
DB_SEND_FAILURE
();
44
return
DB_OK;
45
}
46
DB_SEND_SUCCESS
();
47
48
/* no results */
49
return
DB_OK;
50
}
render.name
string name
Definition:
render.py:1314
macros.h
db_driver_drop_table
int(* db_driver_drop_table)()
stat
int stat
Definition:
g3dcolor.c:369
DB_SEND_FAILURE
#define DB_SEND_FAILURE()
Definition:
macros.h:9
dbstubs.h
db_d_drop_table
int db_d_drop_table(void)
Drop table.
Definition:
d_drop_tab.c:26
DB_SEND_SUCCESS
#define DB_SEND_SUCCESS()
Definition:
macros.h:7
db_free_string
void db_free_string(dbString *x)
Definition:
string.c:142
db_init_string
void db_init_string(dbString *x)
Definition:
string.c:11
DB_RECV_STRING
#define DB_RECV_STRING(x)
Definition:
macros.h:18
lib
db
dbmi_driver
d_drop_tab.c
Generated on Sat Jan 2 2016 01:46:47 for GRASS Programmer's Manual by
1.8.5