12main(
int argc,
char *argv[]) {
18 assert(archive != NULL);
21 assert(contents != NULL);
23 fwrite(contents, 1, size, stdout);
27 assert(files != NULL);
28 for (
int i = 0; files[i] != NULL; i++) {
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.
char ** sqsh_easy_directory_list(struct SqshArchive *archive, const char *path, int *err)
retrieves the contents of a directory as a list of file names
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.