GRASS Programmer's Manual  6.4.3(2013)-r
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
d_list_tabs.c
Go to the documentation of this file.
1 
15 #include <grass/dbmi.h>
16 #include "macros.h"
17 #include "dbstubs.h"
18 
26 {
27  dbString *names;
28  int count;
29  int system;
30  int stat;
31 
32  /* arg(s) */
33  DB_RECV_INT(&system);
34 
35  /* call the procedure */
36  stat = db_driver_list_tables(&names, &count, system);
37 
38  /* send the return code */
39  if (stat != DB_OK) {
41  return DB_OK;
42  }
44 
45  /* send results */
46  DB_SEND_STRING_ARRAY(names, count);
47 
48  return DB_OK;
49 }