sandboxed-api/oss-internship-2020/sapi_libarchive/examples/small_example.cc
2020-09-09 12:02:40 +00:00

16 lines
395 B
C++

#include <iostream>
#include <archive.h>
#include <archive_entry.h>
#include "helpers.h"
int main(int argc, char *argv[]) {
std::cout << "WORKS" << std::endl;
std::vector<std::string> s = MakeAbsolutePaths(argv + 1);
std::cout << "ok" << std::endl;
for (const auto &i : s) {
std::cout << i << std::endl;
}
std::cout << "==========" << std::endl;
return 0;
}