mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
* Update zlibng * Set cmake path more directly in zlibng to hopefully fix an issue with the build on drone * I'm dumb, missing / in path * Mackal helps with a dumb gitignore issue * Adding all the files, not sure what's ignoring them and im tired of looking * Some tweaks to zlibng build to hopefully get it to build properly. works on msvc now
23 lines
464 B
C
23 lines
464 B
C
// http://www.securityfocus.com/archive/1/312869 --- originally by Richard Kettlewell
|
|
#include <stdlib.h>
|
|
#include <zlib.h>
|
|
#include <errno.h>
|
|
#include <stdio.h>
|
|
|
|
int main(void) {
|
|
gzFile f;
|
|
int ret;
|
|
|
|
if(!(f = gzopen("/dev/null", "w"))) {
|
|
perror("/dev/null");
|
|
exit(1);
|
|
}
|
|
|
|
ret = gzprintf(f, "%10240s", "");
|
|
printf("gzprintf -> %d\n", ret);
|
|
ret = gzclose(f);
|
|
printf("gzclose -> %d [%d]\n", ret, errno);
|
|
|
|
exit(0);
|
|
}
|