1
0
mirror of https://github.com/facebook/zstd.git synced 2025-07-17 04:32:26 +02:00

added streaming_decompression example

This commit is contained in:
Yann Collet
2016-08-12 18:56:27 +02:00
parent 553b213ada
commit 9f9f1fcb52
4 changed files with 126 additions and 4 deletions

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);
}