/*
* Copyright (c) 2016-2020, Yann Collet, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under both the BSD-style license (found in the
* LICENSE file in the root directory of this source tree) and the GPLv2 (found
* in the COPYING file in the root directory of this source tree).
* You may select, at your option, one of the above-listed licenses.
*/
#include <stdio.h> // printf
#include <stdlib.h> // free
#include <string.h> // memset, strcat, strlen
#include <zstd.h> // presumes zstd library is installed
#include "common.h" // Helper functions, CHECK(), and CHECK_ZSTD()
static void compressFile_orDie(const char* fname, const char* outName, int cLevel)
{
/* Open the input and output files. */
//FILE* const fin = fopen_orDie(fname, "rb");
char fin[]="12345678";
char din[]="33333333";
size_t SIZE = strlen(fin);
FILE* const fou
zstd压缩最终
于 2020-12-24 16:08:33 首次发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)