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

Go to the source code of this file.

Functions

int explain_buffer_get_current_directory (explain_string_buffer_t *sb, char *data, size_t data_size)

Function Documentation

int explain_buffer_get_current_directory ( explain_string_buffer_t sb,
char *  data,
size_t  data_size 
)

The explain_buffer_get_current_directory function may be used to obtain the path of the current directory, printing errors as and when they are found.

Parameters:
sbThe string buffer to print into.
dataThe buffer to place the generated path into, once found
data_sizeThe siz eof the buffer, in bytes.
Returns:
int; 0 in success (path found, no errors), or -1 when path not found and message already printed.

Definition at line 234 of file get_current_directory.c.