diff options
| author | Richard Nyberg <rnyberg@murmeldjur.se> | 2006-10-14 21:29:25 +0000 |
|---|---|---|
| committer | Richard Nyberg <rnyberg@murmeldjur.se> | 2006-10-14 21:29:25 +0000 |
| commit | 29495ab53bebbdfde86dc9488acfe236d3669e57 (patch) | |
| tree | 127829bf7f28b11e1c72ce61e3b3b90f3bb0c3e7 /misc/subr.h | |
| parent | 25788505fae8dee663f122817363271d48bd7d9a (diff) | |
| download | btpd-29495ab53bebbdfde86dc9488acfe236d3669e57.tar.gz btpd-29495ab53bebbdfde86dc9488acfe236d3669e57.zip | |
Add and use the function make_abs_path. realpath didn't fit my needs.
make_abs_path doesn't need the directories to actually exist in the file system.
Diffstat (limited to 'misc/subr.h')
| -rw-r--r-- | misc/subr.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/misc/subr.h b/misc/subr.h index 8ef962c..fd9e002 100644 --- a/misc/subr.h +++ b/misc/subr.h @@ -36,5 +36,6 @@ int write_fully(int fd, const void *buf, size_t len); void *read_file(const char *path, void *buf, size_t *size); char *find_btpd_dir(void); +int make_abs_path(const char *in, char *out); #endif |