Back to index

glibc  2.9
Functions | Variables
tst-array5dep.c File Reference
#include <string.h>
#include <unistd.h>

Go to the source code of this file.

Functions

static void init_0 (int argc __attribute__((unused)), char **argv)

Variables

void(*const init_array [])(int, char **)

Function Documentation

static void init_0 ( int argc   __attribute__(unused),
char **  argv 
) [static]

Definition at line 5 of file tst-array5dep.c.

{
  char *p = strrchr (argv [0], '/');

  if (p == NULL)
      return;

  p++;
  size_t len = strlen (p);
  write (STDOUT_FILENO, "init array in DSO: ", 19);
  write (STDOUT_FILENO, p, len);
  write (STDOUT_FILENO, "\n", 1);
}

Here is the call graph for this function:


Variable Documentation

void(*const init_array[])(int, char **)

Definition at line 19 of file tst-array5dep.c.

{
  &init_0,
};