added streaming_decompression example

This commit is contained in:
Yann Collet
2016-08-16 15:11:28 +02:00
parent 553b213ada
commit 9f9f1fcb52
4 changed files with 126 additions and 4 deletions
+2 -2
View File
@@ -24,7 +24,7 @@
*/
#include <stdlib.h> // malloc, exit
#include <stdio.h> // fprintf, perror
#include <stdio.h> // fprintf, perror, feof
#include <string.h> // strerror
#include <errno.h> // errno
#define ZSTD_STATIC_LINKING_ONLY // streaming API defined as "experimental" for the time being
@@ -36,7 +36,7 @@ static void* malloc_orDie(size_t size)
void* const buff = malloc(size);
if (buff) return buff;
/* error */
perror(NULL);
perror("malloc:");
exit(1);
}