RELEASE/1.0RELEASE/1.1RELEASE/1.2debug-cidebug-ci-sanitisersfaster-cavernlogstereowalls-datawalls-data-hanging-as-warning
Line | |
---|
1 | #include <stdio.h> |
---|
2 | #include <stdlib.h> |
---|
3 | |
---|
4 | char **ini_read( char *section, char **vars ); |
---|
5 | int ini_open( char *fnm ); |
---|
6 | void ini_close( void ); |
---|
7 | |
---|
8 | int main( int argc, char ** argv ) { |
---|
9 | char ** x; |
---|
10 | if (!ini_open( "testini" )) { |
---|
11 | printf("no file\n"); |
---|
12 | exit(1); |
---|
13 | } |
---|
14 | |
---|
15 | x=ini_read( "survex", argv+1 ); |
---|
16 | if (!x) { |
---|
17 | printf("no go\n"); |
---|
18 | exit(1); |
---|
19 | } |
---|
20 | |
---|
21 | argv++; |
---|
22 | while (*argv) { |
---|
23 | printf("`%s' `%s'\n",*argv++,*x?*x:"NULL"); |
---|
24 | x++; |
---|
25 | } |
---|
26 | return 0; |
---|
27 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.