mirror of
				https://sourceware.org/git/glibc.git
				synced 2025-11-03 20:53:13 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			279 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			279 B
		
	
	
	
		
			C
		
	
	
	
	
	
#include <paths.h>
 | 
						|
#include <string.h>
 | 
						|
#include <stdio.h>
 | 
						|
 | 
						|
const char path[] = _PATH_STDPATH;
 | 
						|
 | 
						|
int
 | 
						|
main (void)
 | 
						|
{
 | 
						|
  char *wr_path = strdupa (path);
 | 
						|
  char *cp = strtok (wr_path, ":");
 | 
						|
 | 
						|
  while (cp != NULL)
 | 
						|
    {
 | 
						|
      puts (cp);
 | 
						|
      cp = strtok (NULL, ":");
 | 
						|
    }
 | 
						|
  return 0;
 | 
						|
}
 |