Hi, I am trying to use zlib and implement it using the zpipe.c example and I am always getting a Z_DATA_ERROR, I thought it might be how I am setting up the file pointers.
if((source = fopen("/Users/macd2/Desktop/testzipfile.story", "r+")) == NULL)
printf("Cannot open %s\n", fileName);
if ((dest = fopen("/Users/macd2/Desktop/unzipped.txt", "w+")) == NULL)
printf("Cannot open %s\n", "xmlfile");
then I call my modified inf() with
ret = inf(source, dest);
but I always get that error, any ideas?