19 lines
		
	
	
		
			234 B
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			234 B
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
| /*
 | |
|  * fputs - print a string
 | |
|  */
 | |
| /* $Header$ */
 | |
| 
 | |
| #include	<stdio.h>
 | |
| 
 | |
| int
 | |
| fputs(register const char *s, register FILE *stream)
 | |
| {
 | |
| 	register int i = 0;
 | |
| 
 | |
| 	while (*s) 
 | |
| 		if (putc(*s++, stream) == EOF) return EOF;
 | |
| 		else i++;
 | |
| 
 | |
| 	return i;
 | |
| }
 | 
