Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/p/putc_unlocked.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/p/putc_unlocked.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/p/putc_unlocked.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/p/putc_unlocked.html on line 8
Write a character to an output stream
#include <stdio.h>
int putc_unlocked( int c,
FILE *stream );
- c
- The character that you want to write.
- stream
- The stream you want to write the character on.
libc
Use the -l c option to
qcc
to link against this library.
This library is usually included automatically.
The putc_unlocked() function is a thread-unsafe version of
putc().
You can use it safely only when the invoking
thread has locked stream using
flockfile() (or
ftrylockfile()) and
funlockfile().
The character written, cast as (int)(unsigned char),
or EOF if an error occurred
(errno is set).
POSIX 1003.1 TSF
Safety: | |
Cancellation point |
Yes |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
getc(),
getchar(),
getchar_unlocked(),
getc_unlocked(),
putc(),
putchar(),
putchar_unlocked()
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/p/putc_unlocked.html on line 123
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/p/putc_unlocked.html on line 123