home *** CD-ROM | disk | FTP | other *** search
- /*-----------------------------------------------------------------------*
- * filename - fputs.c
- *
- * function(s)
- * fputs - puts a string on a stream
- *-----------------------------------------------------------------------*/
-
- /*[]------------------------------------------------------------[]*/
- /*| |*/
- /*| Turbo C Run Time Library - Version 3.0 |*/
- /*| |*/
- /*| |*/
- /*| Copyright (c) 1987,1988,1990 by Borland International |*/
- /*| All Rights Reserved. |*/
- /*| |*/
- /*[]------------------------------------------------------------[]*/
-
-
- #include <stdio.h>
- #include <_stdio.h>
- #include <string.h>
-
- /*---------------------------------------------------------------------*
-
- Name fputs - puts a string on a stream
-
- Usage #include <stdio.h>
- int fputs(const char *string, FILE *stream);
-
- Prototype in stdio.h
-
- Description copies the null-terminated string string to the named
- output stream; it does not append a newline character.
-
- Return value success : the last character written
- else : EOF
-
- *---------------------------------------------------------------------*/
- int fputs (const register char *s, FILE *fp)
- {
- register int len;
-
- len = strlen(s);
- return __fputn (s, len, fp) ? *(unsigned char *)(s+len-1) : EOF;
- }
-