*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->OpenBSD man pages -> fputs (3)              
Title
Content
Arch
Section
 

FPUTS(3)

Contents


NAME    [Toc]    [Back]

     fputs, puts - output a line to a stream

SYNOPSIS    [Toc]    [Back]

     #include <stdio.h>

     int
     fputs(const char *str, FILE *stream);

     int
     puts(const char *str);

DESCRIPTION    [Toc]    [Back]

     The function fputs() writes the string pointed to by str  to
the stream
     pointed to by stream.

     The function puts() writes the string str, and a terminating
newline
     character, to the stream stdout.

RETURN VALUES    [Toc]    [Back]

     The fputs() function returns 0 on success and EOF on  error;
puts() returns
 a nonnegative integer on success and EOF on error.

ERRORS    [Toc]    [Back]

     [EBADF]        The stream supplied is not a writable stream.

     The functions fputs() and puts() may also fail and set errno
for any of
     the errors specified for the routines write(2).

SEE ALSO    [Toc]    [Back]

      
      
     ferror(3), putc(3), stdio(3)

STANDARDS    [Toc]    [Back]

     The functions fputs() and puts() conform to ANSI X3.159-1989
(``ANSI
     C'').

OpenBSD      3.6                           June      4,      1993
[ Back ]
 Similar pages
Name OS Title
fputws FreeBSD output a line of wide characters to a stream
fgetln OpenBSD get a line from a stream
fgets OpenBSD get a line from a stream
gets FreeBSD get a line from a stream
gets NetBSD get a line from a stream
fgets FreeBSD get a line from a stream
fgetln FreeBSD get a line from a stream
gets OpenBSD get a line from a stream
fgets NetBSD get a line from a stream
fgetln NetBSD get a line from a stream
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service