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

Go to the source code of this file.

Functions

void explain_buffer_rwx (explain_string_buffer_t *sb, int mode)

Function Documentation

void explain_buffer_rwx ( explain_string_buffer_t sb,
int  mode 
)

The explain_buffer_rwx function may be used to print a representation of a "rwx" access mode.

It prints 'r' if any of 0444 are set. It prints 'w' if any of 0222 are set. It prints 'x' if any of 0111 are set.

Parameters:
sbThe string buffer to print into.
modeThe access mode value to be printed.

Definition at line 23 of file rwx.c.