Gobelijn API documentation  - generated for commit a0cbea7
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
printArgv.h
Go to the documentation of this file.
1 #pragma once
2 /*
3  * This file is part of the gobelijn software.
4  * Gobelijn is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License as published by the
6  * Free Software Foundation, either version 3 of the License, or any later
7  * version. Gobelijn is distributed in the hope that it will be useful, but
8  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
9  * or FITNESS FOR A PARTICULAR PURPOSE.
10  * See the GNU General Public License for details. You should have received
11  * a copy of the GNU General Public License along with the software. If not,
12  * see <http://www.gnu.org/licenses/>.
13  *
14  * Copyright 2012, Jan Broeckhove.
15  */
20 #include <iostream>
21 
22 namespace UA_CoMP {
23 namespace Util {
24 
25 void printArgv(int argc, char* argv[], std::ostream& os)
26 {
27  os << "argc : " << argc << std::endl;
28  for (int i = 0; i < argc; i++) {
29  os << "argv[" << i << "]: " << argv[i] << std::endl;
30  }
31  return;
32 }
33 
34 } // namespace Util
35 } // namespace UA_CoMP
void printArgv(int argc, char *argv[], std::ostream &os)
Definition: printArgv.h:25