libexplain  1.4.D001
Functions
libexplain/buffer/caption_name_type.c File Reference
#include <libexplain/ac/string.h>
#include <libexplain/ac/sys/stat.h>
#include <libexplain/buffer/caption_name_type.h>
#include <libexplain/buffer/file_type.h>
#include <libexplain/buffer/gettext.h>
#include <libexplain/option.h>

Go to the source code of this file.

Functions

static void explain_buffer_current_directory (explain_string_buffer_t *sb)
void explain_buffer_caption_name_type (explain_string_buffer_t *sb, const char *caption, const char *name, int st_mode)
void explain_buffer_caption_name_type_st (explain_string_buffer_t *sb, const char *caption, const char *name, const struct stat *st)

Function Documentation

void explain_buffer_caption_name_type ( explain_string_buffer_t sb,
const char *  caption,
const char *  name,
int  st_mode 
)

The explain_buffer_caption_name_type function may be used to print an qualified file name, including the type.

Parameters:
sbThe string buffer to print into.
captionThe caption "pathname", "oldpath", "newpath", etc, or NULL
nameThe name of the file or directory, or NULL
st_modeThe file type (S_IFREG, etc)

Definition at line 45 of file caption_name_type.c.

void explain_buffer_caption_name_type_st ( explain_string_buffer_t sb,
const char *  caption,
const char *  name,
const struct stat *  st 
)

The explain_buffer_caption_name_type_st function may be used to print an qualified file name, including the type.

Parameters:
sbThe string buffer to print into.
captionThe caption "pathname", "oldpath", "newpath", etc, or NULL
nameThe name of the file or directory, or NULL
stThe file meta data, including the mode.

Definition at line 73 of file caption_name_type.c.

Definition at line 30 of file caption_name_type.c.