skopy/lib/include/path.h

20 lines
403 B
C

#ifndef SK_PATH_H
#define SK_PATH_H
#include "commons.h"
struct path
{
struct str* str;
};
void path_init(struct path* self, char const* path_text);
void path_free(struct path* self);
bool path_is_relative(struct path* self);
void path_set_ext(struct path* self, char const* ext);
ssize_t path_try_find_ext(struct path* self);
void path_extract_name(struct path* self, struct str* dest);
#endif