NAME

caterr_setprogname - set program name for debug output

SYNOPSIS

#include <cat/cat.h>

void caterr_setprogname(const char *argv0);

DESCRIPTION

This function sets the program name to be used in debug or error output.

Parameter argv0 is the string name of the program. If the name is supplied as a complete directory path, the path will be removed with only the name of the executable kept.

In Windows NT, if the string ends with the ``.exe'' suffix, this will be removed.

NOTES

This function can be called before cat_init().

EXAMPLE

The call:

  caterr_setprogname("/tmp/agents/orbital");

will set the program name to "orbital".

SEE ALSO

cat, caterr