File: main.cpp

package info (click to toggle)
libclaw 1.7.4-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,080 kB
  • sloc: cpp: 13,287; sh: 227; makefile: 8
file content (21 lines) | stat: -rw-r--r-- 629 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <iostream>
#include <claw/system_info.hpp>

int main( int argc, char* argv[] )
{
  std::cout << "your name: '" << claw::system_info::get_user_name() << "'\n";
  std::cout << "your directory: '" << claw::system_info::get_user_directory()
	    << "'\n";
  std::cout << "host name: '" << claw::system_info::get_host_name() << "'\n";
  std::cout << "temp directory: '"
	    << claw::system_info::get_temporary_directory() << "'\n";

  for (int i=1; i<argc; ++i)
    std::cout << "\t'" << argv[i] << "': '"
	      << claw::system_info::get_environment( argv[i] ) << "'\n";

  std::cout.flush();

  return 0;
} // int main()