NAME

puts, fputs - put a string on a stream

SYNOPSIS

#include <stdio.h>

int puts(const char *s );
int fputs(const char *s , FILE *stream );

DESCRIPTION

puts() writes the string pointed to by s, followed by a new-line character, to the standard output stream stdout.

fputs() writes the null-terminated string pointed to by s to the named output stream .

Neither function writes the terminating NULL character.

RETURN VALUES

On success both routines return the number of characters written; otherwise they return EOF.

SEE ALSO

write(), fclose(), ferror(), fopen(), printf(), putc()

NOTES

puts() appends a new-line character while fputs() does not.


< Copyright Rowebots Research Inc. and Multiprocessor Toolsmiths Inc. 1987-2008 >