libexplain  1.4.D001
Functions
libexplain/buffer/eisdir.h File Reference
#include <libexplain/string_buffer.h>

Go to the source code of this file.

Functions

int explain_buffer_eisdir (explain_string_buffer_t *sb, const char *pathname, const char *caption)

Function Documentation

int explain_buffer_eisdir ( explain_string_buffer_t sb,
const char *  pathname,
const char *  caption 
)

The explain_buffer_eisdir function may be used to print an explainaton for an EISDIR error, in the case where a file was to be opened for writing.

Parameters:
sbThe string buffer to print into.
pathnameThe pathname of the offending file.
captionThe name of the offending function call parameter.
Returns:
bool; true (non-zero) if a message was issued, false (zero) if no message was issued.

Definition at line 25 of file eisdir.c.