libexplain
1.4.D001
|
#include <stdio.h>
Go to the source code of this file.
Functions | |
int | explain_filename_from_stream (FILE *stream, char *data, size_t data_size) |
int | explain_filename_from_fildes (int fildes, char *data, size_t data_size) |
int explain_filename_from_fildes | ( | int | fildes, |
char * | data, | ||
size_t | data_size | ||
) |
The explain_filename_from_stream function may be used to obtain the filename associated with the given I/O stream.
fildes | The file descriptor from which to obtain the filename. |
data | the filename will be returned in this buffer, NUL terminated. |
data_size | The available size of the return buffer, in bytes. If too small, the result will be silently truncated. |
Definition at line 34 of file filename.c.
int explain_filename_from_stream | ( | FILE * | stream, |
char * | data, | ||
size_t | data_size | ||
) |
The explain_filename_from_stream function may be used to obtain the filename associated with the given I/O stream.
stream | The file stream from which to obtain the filename. |
data | the filename will be returned in this buffer, NUL terminated. |
data_size | The available size of the return buffer, in bytes. If too small, the result will be silently truncated. |
Definition at line 27 of file filename.c.