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

  man pages->IRIX man pages -> puts (3s)              
Title
Content
Arch
Section
 

Contents


PUTS(3S)							      PUTS(3S)


NAME    [Toc]    [Back]

     puts, fputs - put a string	on a stream

SYNOPSIS    [Toc]    [Back]

     #include <stdio.h>

     int puts (const char *s);

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

DESCRIPTION    [Toc]    [Back]

     puts writes the null-terminated 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.

SEE ALSO    [Toc]    [Back]

      
      
     exit(2), lseek(2),	write(2), abort(3C), fclose(3S), ferror(3S),
     fopen(3S),	fread(3S), printf(3S), putc(3S), stdio(3S).

DIAGNOSTICS    [Toc]    [Back]

     On	success	both routines return the number	of characters written;
     otherwise they return EOF.	This will happen if the	routines try to	write
     on	a file that has	not been opened	for writing.

NOTES    [Toc]    [Back]

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


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
XmCvtByteStreamToXmString HP-UX A compound string function that converts from a compound string in Byte Stream format to a compound string
XmCvtXmStringToByteStream HP-UX A compound string function that converts a compound string to a Byte Stream format
gets IRIX get a string from a stream
gets Tru64 Get a string from a stream
getws IRIX get a wchar_t string from a stream
fgets Tru64 Get a string from a stream
putws IRIX put a wchar_t string on a stream
fgetws Tru64 Get a string from a stream
puts Tru64 Writes a string to a stream
fputs Tru64 Writes a string to a stream
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service