fork(1) download
  1. #include <iostream>
  2. #include <vector>
  3.  
  4. void foo(const char **){}
  5.  
  6. int main(int argc, char **argv) {
  7. std::vector<const char*> data(argv, argv + argc);
  8. foo(data.data());
  9. }
Success #stdin #stdout 0s 3408KB
stdin
Standard input is empty
stdout
Standard output is empty