home *** CD-ROM | disk | FTP | other *** search
- /* puts, fputs - put a string on a stream */
- /* 1982/10/09 22:57
-
- Copyright 1982 William G. Hutchison, Jr.
- P.O. Box 278
- Exton, PA 19341-0278
- U.S.A.
-
- CompuServe 70665,1307
-
-
- These functions may be used freely for any non-commercial
- purpose, provided that the user does not remove or alter
- this notice or the copyright statement.
- Those who wish to sell or lease these functions, or to
- incorporate them into a product for sale or lease, should
- apply to the author (above) for licensing information.
- These functions are not covered by a warranty, either
- express or implied. The author shall not be responsible for
- any damages (including consequential) caused by reliance on
- the materials presented, including but not limited to
- typographical errors or arithmetic errors.
-
- NOTE: The names and functions of these sub-programs are
- the same as certain sub-programs provided with the UNIX
- system (tm Western Electric Co.), but these sub-programs are
- original work, not copies of the UNIX sub-programs.
-
- */
-
- /* definitions for Software Toolworks C/80 Version 2.0: */
- #ifdef MAINLY
- #else
- #include "c80def.h" /* above */
- #endif
-
- /* puts - put a string to stdout, appending a newline at the end */
-
- puts(s) char *s;
- {
- while (*s) putchar(*s++);
- putchar(NEWLINE);
- }
- /* end puts */
-
- /* fputs - copy string s to output stream */
-
- fputs(s, stream) char *s;
- FILE *stream;
- {
- while(*s) putc(*s++, stream);
- } /* end fputs */