Last change
on this file was
2,
checked in by oldcode, 24 years ago
|
Initial revision
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
686 bytes
|
Line | |
---|
1 | #include <stdio.h> |
---|
2 | #include <arbdb.h> |
---|
3 | #include <string.h> |
---|
4 | int main(int argc, char **argv) |
---|
5 | { |
---|
6 | GB_ERROR error; |
---|
7 | char *in; |
---|
8 | const char *type = "b"; |
---|
9 | int ci = 1; |
---|
10 | GBDATA *gb_main; |
---|
11 | |
---|
12 | if (argc <= 1) |
---|
13 | { |
---|
14 | GB_export_error( "\narb_test: database test\n" |
---|
15 | " Syntax: arb_test database\n" |
---|
16 | ); |
---|
17 | GB_print_error(); |
---|
18 | return(-1); |
---|
19 | } |
---|
20 | |
---|
21 | in = argv[ci++]; |
---|
22 | |
---|
23 | gb_main = GB_open(in,"rw"); |
---|
24 | if (!gb_main) |
---|
25 | { |
---|
26 | GB_print_error(); |
---|
27 | return (-1); |
---|
28 | } |
---|
29 | |
---|
30 | error = GB_ralfs_test(gb_main); |
---|
31 | if (error) |
---|
32 | { |
---|
33 | GB_print_error(); |
---|
34 | return -1; |
---|
35 | } |
---|
36 | |
---|
37 | return 0; |
---|
38 | } |
---|
39 | |
---|
40 | |
---|
Note: See
TracBrowser
for help on using the repository browser.