get_executable_name man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

get_executable_name(3)		Allegro manual		get_executable_name(3)

NAME
       get_executable_name  - Obtains the full path to the current executable.
       Allegro game programming library.

SYNOPSIS
       #include <allegro.h>

       void get_executable_name(char *buf, int size);

DESCRIPTION
       Fills `buf' with the full path to the current  executable,  writing  at
       most  `size'  bytes.   This  generally comes from `argv[0]' but on Unix
       systems it tries to get the information	from  the  `/proc'  filesystem
       first,  searching the directories specified in `$PATH' if necessary. If
       this fails too, it tries to find the executable name from the output of
       the  `ps'  command,  using `argv[0]' only as a last resort if all other
       options fail. Example:

	  char name[200];
	  ...
	  get_executable_name(name, sizeof(name));
	  allegro_message("Running `%s'\n", name);

Allegro				 version 4.4.2		get_executable_name(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net