SYNOPSIS
#include <stdio.h>
int putc(int c, FILE *stream);
DESCRIPTION
The
PARAMETERS
RETURN VALUES
On success,
- EACCES
-
Another process has the file locked.
- EBADF
-
stream is not a valid stream opened for writing.
- EFBIG
-
The file is a regular file and an attempt was made to write at or beyond the offset maximum.
- EINTR
-
A signal interrupted the call.
- EIO
-
An output error occurred.
- ENOMEM
-
Memory could not be allocated for internal buffers.
- ENOSPC
-
An attempt was made to write to a full disk.
- ENXIO
-
A device error occurred.
- EPIPE
-
An attempt was made to write to a closed pipe.
CONFORMANCE
ANSI/ISO 9899-1990.
MULTITHREAD SAFETY LEVEL
MT-Safe.
PORTING ISSUES
If the stream is from a file opened in text mode, linefeed is translated to carriage-return linefeed on output. No such translation occurs for files opened in binary mode.
AVAILABILITY
MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
- Functions:
abort() ,exit() ,fclose() ,fflush() ,fputc() ,fputs() ,putc_unlocked() ,putchar() ,putchar_unlocked() ,puts()
MKS Toolkit 9.2 Documentation Build 16.