Back to index

glibc  2.9
Functions | Variables
init-misc.c File Reference
#include <string.h>
#include <libc-internal.h>

Go to the source code of this file.

Functions

 weak_alias (__progname_full, program_invocation_name)

Variables

char * __progname_full = ""
char * __progname = ""

Function Documentation

weak_alias ( __progname_full  ,
program_invocation_name   
)

Definition at line 25 of file init-misc.c.

{
  if (argv && argv[0])
    {
      char *p = strrchr (argv[0], '/');
      if (p == NULL)
       __progname = argv[0];
      else
       __progname = p + 1;
      __progname_full = argv[0];
    }
}

Here is the call graph for this function:


Variable Documentation

char* __progname = ""

Definition at line 24 of file init-misc.c.

char* __progname_full = ""

Definition at line 23 of file init-misc.c.