Products
and Services Support
and Docs Training Partner Programs About Red
Hat
  download storecart
red hat logo
redhat.comredhat network

Red Hat Documentation

fputs[write a character string in a file or stream] Contents|Index|Previous|Next

fputs
[write a character string in a file or stream]

SYNOPSIS
#include<stdio.h>
int fputs(constchar *s,FILE *fp);

DESCRIPTION
fputs writes the string at s (but without the trailing null) to the file or stream identified by fp.

RETURNS
If successful, the result is 0; otherwise, the result is EOF.

COMPLIANCE
ANSI C requires fputs, but does not specify that the result on success must be 0; any non-negative value is permitted.

Supporting OS subroutines required: close, fstat, isatty, lseek, read, sbrk, write. <

 

 


 
© 2001 Red Hat, Inc. All rights reserved.
About Red Hat  :  Legal statement  :  Privacy statement  :  Y2K statement  :  Contact Red Hat