|
||
int putc( int ch, FILE *fp )
int c; /* a character, widened to int */ FILE *fp; /* output stream pointer */
|
|
|
Synopsis |
#include "stdio.h"
The putc function writes the character c to the file associated with fp .
|
|
Parameters |
c is a character. fp is a stream pointer, opened for output.
|
|
Return Value |
putc returns c if successful, or EOF (-1) if not.
|
|
Comments |
putc is identical to fputc .
|
|
See Also |
|
|
|
|