Archived
1
0
Fork 0
This repository has been archived on 2026-05-10. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
archived/src/path.h
2011-02-05 14:13:17 +01:00

27 lines
685 B
C

/* path.h - path handling routines
*
* Copyright (C) 2010 Henrik Hautakoski <henrik@fiktivkod.org>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*/
#ifndef __PATH_H
#define __PATH_H
#include <stddef.h>
#include <libgen.h>
int is_abspath(const char *path);
int is_file(const char *path);
int is_dir(const char *path);
const char* mkpath(const char *fmt, ...);
char* path_normalize(const char *base, const char *name, unsigned dir);
#endif /* __PATH_H */