Syntax | #include <stdio.h> FILE *fdopen(int fildes, const char *mode); | |||||||||||||
Description | Description mode is a character string having one of the following values:
The meaning of these flags is exactly as specified in The mode argument for the stream must only include the access modes that were originally The error and end-of-file indicators for the stream are cleared. The BS2000 For automatic conversion, the | |||||||||||||
Return val. | Pointer to a stream | |||||||||||||
if successful. | ||||||||||||||
| Null pointer | if an error occurs; | ||||||||||||
Errors |
| |||||||||||||
|
| fildes is not a valid file descriptor. | ||||||||||||
|
| For POSIX files: mode is not a valid mode. | ||||||||||||
|
|
| ||||||||||||
|
| There is not enough memory to allocate a buffer. | ||||||||||||
| BS2000 If errors occur, e.g. due to an invalid file descriptor, | |||||||||||||
Notes |
File descriptors are obtained from calls like The program environment determines whether | |||||||||||||
See also |
|