public
/
Ack-5.5.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Pristine Ack-5.5
[Ack-5.5.git]
/
lang
/
cem
/
libcc.ansi
/
stdio
/
fputs.c
1
/*
2
* fputs - print a string
3
*/
4
/* $Id: fputs.c,v 1.3 1994/06/24 11:49:44 ceriel Exp $ */
5
6
#include <stdio.h>
7
8
int
9
fputs(register const char *s, register FILE *stream)
10
{
11
register int i = 0;
12
13
while (*s)
14
if (putc(*s++, stream) == EOF) return EOF;
15
else i++;
16
17
return i;
18
}