SYNOPSIS
#include <stdio.h>
int putchar_unlocked(int c);
DESCRIPTION
The
This function may safely be used in a multi-threaded process only if
the invoking thread owns stream, within a scope protected
by
PARAMETERS
RETURN VALUES
On success,
- EACCES
-
Another process has the file locked.
- EBADF
-
stdout is not a valid stream opened for writing.
- 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
POSIX.1 (1996).
MULTITHREAD SAFETY LEVEL
Unsafe.
PORTING ISSUES
If stdout is associated with a file opened in text mode, linefeed is translated to carriage-return linefeed on output. No such translation occurs if stdout is 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() ,flockfile() ,fputc() ,fputs() ,ftrylockfile() ,funlockfile() ,putc() ,putc_unlocked() ,putchar() ,puts()
MKS Toolkit 9.2 Documentation Build 16.