40 int main(
int argc,
const char *
argv[]) {
42 if (argc > 1 && strcmp(
argv[1],
"-v") == 0) {
43 printf(
"not supported on Windows\n");
63 if (argc > 1 && strcmp(
argv[1],
"-v") == 0) {
69 char *so = (
char *)
malloc(strlen(
cwd) + 64);
77 setenv(
"LIBOVERRIDE_SET",
"1", 1);
78 setenv(
"LD_PRELOAD", so, 1);
81 printf(
"exec failed: %s\n", strerror(errno));
89 printf(
"open succeeded\n");
_Use_decl_annotations_ int __cdecl printf(const char *const _Format,...)
int main(int argc, const char *argv[])
ZIP_EXTERN zip_t *_Nullable zip_open(const char *_Nonnull, int, int *_Nullable)
void * malloc(size_t size)
static static fork const void static count static fd const char const char static newpath char char argv