exit_argc.cpp 364 B

1234567891011121314
  1. // Copyright (c) 2018 Oxford Nanopore Technologies
  2. //
  3. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  4. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. #include <iostream>
  6. int main(int argc, char *argv[])
  7. {
  8. for (int i = 0; i < argc; ++i) {
  9. std::cout << argv[i] << '\n';
  10. }
  11. return argc;
  12. }