getprog - get the basename from a pathname
SYNOPSIS
char *getprog(file_name)
char *file_name;
DESCRIPTION
getprog
removes the pathname from
file_name
and then strips off any `.' extensions, such as
.exe.
getprog
is used to ascertain what /rdb program is being
invoked by processing
argv[0],
and is generally stored in the global variable
common to all /rdb programs,
Program.
RETURN VALUE
getprog
returns a (possibly moved) pointer to
file_name.
SEE ALSO