Update.
[glibc.git] / manual / examples / strdupa.c
blob7d6ef39947ce304ee822c1a158d1d928647f76e9
1 #include <paths.h>
2 #include <string.h>
3 #include <stdio.h>
5 const char path[] = _PATH_STDPATH;
7 int
8 main (void)
10 char *wr_path = strdupa (path);
11 char *cp = strtok (wr_path, ":");
13 while (cp != NULL)
15 puts (cp);
16 cp = strtok (NULL, ":");
18 return 0;