source: trunk/minix/lib/stdio/fputs.c@ 10

Last change on this file since 10 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 310 bytes
RevLine 
[9]1/*
2 * fputs - print a string
3 */
4/* $Header: /cvsup/minix/src/lib/stdio/fputs.c,v 1.1.1.1 2005/04/21 14:56:35 beng Exp $ */
5
6#include <stdio.h>
7
8int
9fputs(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}
Note: See TracBrowser for help on using the repository browser.