Implementation of utility functions used by libbls. More...
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <sys/types.h>
#include "debug.h"
#include "util.h"
Go to the source code of this file.
Functions | |
int | path_join (char **result, char *path1, char *path2) |
Joins two path components to form a full path. |
Implementation of utility functions used by libbls.
Definition in file util.c.
int path_join | ( | char ** | result, | |
char * | path1, | |||
char * | path2 | |||
) |
Joins two path components to form a full path.
The resulting path should be freed using free() when it is not needed anymore.
[out] | result | the resulting combined path |
path1 | first path component | |
path2 | second path component |
Definition at line 46 of file util.c.
Referenced by segcol_store_in_file().