blob: 4d79dcb1800a282a5bed1e2d5c38296e8255a49a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
/*
* This file is part of MXE.
* See index.html for further information.
*/
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <geos_c.h>
static void notice(const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
vprintf(fmt, ap);
va_end(ap);
printf("\n");
}
static void error(const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
vprintf(fmt, ap);
va_end(ap);
printf("\n");
exit(1);
}
int main(int argc, char *argv[])
{
GEOSContextHandle_t handle;
(void)argc;
(void)argv;
handle = initGEOS_r(notice, error);
printf("GEOS version: %s\n", GEOSversion());
finishGEOS_r(handle);
return 0;
}
|