Warning: That file was not part of the compilation database. It may have many parsing errors.
1 | #include <string.h> |
---|---|
2 | #include <zlib.h> |
3 | |
4 | int version[3] = {0,0,0}; |
5 | |
6 | static void decode(char *str) |
7 | { |
8 | int n; |
9 | for (n = 0; n < 3 && str; n++) { |
10 | char *pnt = strchr(str, |
11 | if (pnt) *pnt++ = |
12 | version[n] = atoi(str); |
13 | str = pnt; |
14 | } |
15 | } |
16 | |
17 | int main(void) { |
18 | decode(strdup(zlibVersion())); |
19 | return |
20 | (version[0] < 1 || |
21 | (version[0] == 1 && |
22 | (version[1] < 1 || |
23 | (version[1] == 1 && version[2] < 4)))); |
24 | } |
25 |
Warning: That file was not part of the compilation database. It may have many parsing errors.