File: exe_path.cpp

package info (click to toggle)
clanlib 1.0~svn3827-7
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 24,632 kB
  • ctags: 16,580
  • sloc: cpp: 101,591; xml: 6,410; makefile: 1,743; ansic: 463; perl: 424; php: 247; sh: 53
file content (15 lines) | stat: -rw-r--r-- 290 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <ClanLib/core.h>

int main(int argc, char** argv)
{
	try
	{
		std::cout << "The binary '" << argv[0] << "' is located in '" 
			<< CL_System::get_exe_path() << "'" << std::endl;
	}
	catch (CL_Error& err) 
	{
		std::cout << "CL_Error: " << err.message << std::endl;
	}
	return 0;
}