fputc man page on Cygwin

Man page or keyword search:  
man Server   22533 pages
apropos Keyword Search (all sections)
Output format
Cygwin logo
[printable version]

FPUTC(3)			    NEWLIB			      FPUTC(3)

NAME
       4.20 `fputc'--write a character on a stream or file

SYNOPSIS
	    #include <stdio.h>
	    int fputc(int CH, FILE *FP);

	    #include <stdio.h>
	    int _fputc_r(struct _rent *PTR, int CH, FILE *FP);

DESCRIPTION
       `fputc'	converts  the argument CH from an `int' to an `unsigned char',
       then writes it to the file or stream identified by FP.

	  If the file was opened with append mode (or  if  the	stream	cannot
       support	positioning),  then  the  new character goes at the end of the
       file or stream.	Otherwise, the new character is written at the current
       value  of  the position indicator, and the position indicator oadvances
       by one.

	  For a macro version of this function, see `putc'.

	  The `_fputc_r' function is simply a  reentrant  version  of  `fputc'
       that takes an additional reentrant structure argument: PTR.

RETURNS
       If  successful,	`fputc'	 returns  its argument CH.  If an error inter‐
       venes, the result is `EOF'.  You can use ``ferror(FP)''	to  query  for
       errors.

PORTABILITY
       `fputc' is required by ANSI C.

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

SEE ALSO
       fputc is part of the library.  The full documentation for is maintained
       as  a Texinfo manual.  If info and are properly installed at your site,
       the command

	      info

       will give you access to the complete manual.

NEWLIB				  April 2010			      FPUTC(3)
[top]

List of man pages available for Cygwin

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net