Back to index

glibc  2.9
strdupa.c
Go to the documentation of this file.
00001 #include <paths.h>
00002 #include <string.h>
00003 #include <stdio.h>
00004 
00005 const char path[] = _PATH_STDPATH;
00006 
00007 int
00008 main (void)
00009 {
00010   char *wr_path = strdupa (path);
00011   char *cp = strtok (wr_path, ":");
00012 
00013   while (cp != NULL)
00014     {
00015       puts (cp);
00016       cp = strtok (NULL, ":");
00017     }
00018   return 0;
00019 }