get_executable_name(3alleg4) debian man page | unix.com

Man Page: get_executable_name

Operating Environment: debian

Section: 3alleg4

get_executable_name(3alleg4)					  Allegro manual				      get_executable_name(3alleg4)

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' ", name); Allegro version 4.4.2 get_executable_name(3alleg4)
Related Man Pages
get_filename(3alleg4) - suse
exsyscur(3alleg4) - opendarwin
get_filename(3alleg4) - php
get_filename(3alleg4) - v7
get_filename(3alleg4) - osx
Similar Topics in the Unix Linux Community
Installing Dash Shell on OS X Lion
Is UNIX an open source OS ?
One instance of comparing grep and awk
Weird 'find' results
My first PERL incarnation... Audio Oscillograph