src/util.c File Reference

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"
Include dependency graph for util.c:

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.

Detailed Description

Implementation of utility functions used by libbls.

Definition in file util.c.


Function Documentation

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.

Parameters:
[out] result the resulting combined path
path1 first path component
path2 second path component
Returns:
the operation error code

Definition at line 46 of file util.c.

Referenced by segcol_store_in_file().

Here is the caller graph for this function:


Generated on Sun Nov 15 15:27:51 2009 for libbls by  doxygen 1.6.1