crun-cli v1.4.0
C-based project scaffolding CLI
Loading...
Searching...
No Matches
crun_zip_manager.h
Go to the documentation of this file.
1
11
12#ifndef __CRUN_ZIP_MANAGER_H__
13#define __CRUN_ZIP_MANAGER_H__
14
15// #########################################
16// ### HEADERS & MACROS DECLARATION PART ###
17// #########################################
18
19#include <stddef.h>
20
21#ifdef _WIN32
22#include <direct.h>
23#define MKDIR(path) _mkdir(path)
24#define PATH_SEP '\\'
25
26#else
27#include <unistd.h>
28#define MKDIR(path) mkdir(path, 0755)
29#define PATH_SEP '/'
30#endif
31
32// ##################################
33// ### FUNCTIONS DECLARATION PART ###
34// ##################################
35
47int extract_zip(const char *, const char *, char *, size_t);
48
49#endif // __CRUN_ZIP_MANAGER_H__
int extract_zip(const char *, const char *, char *, size_t)
Extract ZIP content safely into output directory.
Definition crun_zip_manager.c:63