src/ccpp_utils.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <err.h>
Functions/Subroutines |
|
|
int | ccpp_abs_path (const char *rel, char **abs) |
Detailed Description
Utility routines that are commonly used in CCPP.
Function Documentation
int ccpp_abs_path |
( |
const char * |
rel, |
|
|
char ** |
abs | |
|
) |
| | |
Resolves the absolute path when given a relative path.
- Parameters:
-
[in] | rel | Relative path name |
[out] | abs | Absolute path name |
- Return values:
-
| 0 | If the path was resolved |
| 1 | If we were unable to resolve the path |