15main(
int argc,
char *argv[]) {
17 printf(
"Usage: %s <sqsh-file> <path>\n", argv[0]);
21 assert(archive != NULL);
24 assert(content != NULL);
27 fwrite(content, size, 1, stdout);
int main(int argc, char *argv[])
uint64_t sqsh_easy_file_size2(struct SqshArchive *archive, const char *path, int *err)
retrieves the size of a file.
uint8_t * sqsh_easy_file_content(struct SqshArchive *archive, const char *path, int *err)
retrieves the content of a file.
SQSH_NO_UNUSED struct SqshArchive * sqsh_archive_open(const void *source, const struct SqshConfig *config, int *err)
initializes a archive context in heap.
int sqsh_archive_close(struct SqshArchive *archive)
Frees the resources used by a Sqsh instance.