BRL-CAD

Support routines to provide the executable code with information about executable name used to invoke the current program. More...

#include "common.h"
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include "bio.h"
#include "bu/file.h"
#include "bu/log.h"
#include "bu/malloc.h"
#include "bu/parallel.h"
#include "bu/str.h"
Include dependency graph for progname.c:

Go to the source code of this file.

Macros

#define _GNU_SOURCE   /* must come before common.h */
 

Functions

const char * bu_argv0_full_path (void)
 
const char * bu_getprogname (void)
 
void bu_setprogname (const char *argv0)
 
const char * bu_argv0 (void)
 

Variables

const char * DEFAULT_PROGNAME = "(BRL-CAD)"
 

Detailed Description

Support routines to provide the executable code with information about executable name used to invoke the current program.

Definition in file progname.c.

Macro Definition Documentation

#define _GNU_SOURCE   /* must come before common.h */

Definition at line 22 of file progname.c.

Function Documentation

const char* bu_argv0 ( void  )

Definition at line 159 of file progname.c.

References bu_getprogname().

Here is the call graph for this function:

Variable Documentation

const char* DEFAULT_PROGNAME = "(BRL-CAD)"

Definition at line 44 of file progname.c.

Referenced by bu_getprogname().