Back to index

glibc  2.9
Functions | Variables
strdupa.c File Reference
#include <paths.h>
#include <string.h>
#include <stdio.h>

Go to the source code of this file.

Functions

int main (void)

Variables

const char path [] = _PATH_STDPATH

Function Documentation

int main ( void  )

Definition at line 8 of file strdupa.c.

{
  char *wr_path = strdupa (path);
  char *cp = strtok (wr_path, ":");

  while (cp != NULL)
    {
      puts (cp);
      cp = strtok (NULL, ":");
    }
  return 0;
}

Here is the call graph for this function:


Variable Documentation

Definition at line 5 of file strdupa.c.