 6bcf58bab8
			
		
	
	
		6bcf58bab8
		
	
	
	
	
		
			
			libcompat_minix is a compatibility layer meant to let existing commands to work with the new libc.
		
			
				
	
	
		
			12 lines
		
	
	
		
			177 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			177 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #include <lib.h>
 | |
| #include <sys/types.h>
 | |
| #include <unistd.h>
 | |
| 
 | |
| void std_err(const char *s)
 | |
| {
 | |
|   register const char *p = s;
 | |
| 
 | |
|   while (*p != 0) p++;
 | |
|   write(2, s, (int) (p - s));
 | |
| }
 |