18 lines
		
	
	
	
		
			230 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
	
		
			230 B
		
	
	
	
		
			C
		
	
	
	
	
	
/*
 | 
						|
 * fputs - print a string
 | 
						|
 */
 | 
						|
/* $Id$ */
 | 
						|
 | 
						|
#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;
 | 
						|
}
 |