Warning, file /office/calligra/cmake/TestModernZlib.c was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 #include <string.h> 0002 #include <zlib.h> 0003 0004 int version[3] = {0,0,0}; 0005 0006 static void decode(char *str) 0007 { 0008 int n; 0009 for (n = 0; n < 3 && str; n++) { 0010 char *pnt = strchr(str, '.'); 0011 if (pnt) *pnt++ = '\0'; 0012 version[n] = atoi(str); 0013 str = pnt; 0014 } 0015 } 0016 0017 int main(void) { 0018 decode(strdup(zlibVersion())); 0019 return 0020 (version[0] < 1 || 0021 (version[0] == 1 && 0022 (version[1] < 1 || 0023 (version[1] == 1 && version[2] < 4)))); 0024 }