N64FlashcartMenu
Loading...
Searching...
No Matches
path.h
Go to the documentation of this file.
1
7#ifndef PATH_H__
8#define PATH_H__
9
10
11#include <stdbool.h>
12
13
15typedef struct {
16 char *buffer;
17 size_t capacity;
18} path_t;
19
20
21path_t *path_init (char *string);
22void path_free (path_t *path);
23path_t *path_clone (path_t *string);
24char *path_get (path_t *path);
25char *path_last_get (path_t *path);
26bool path_is_root (path_t *path);
27void path_append (path_t *path, char *string);
28void path_concat (path_t *dst, path_t *str);
29void path_push (path_t *path, char *string);
30void path_pop (path_t *path);
31char *path_ext_get (path_t *path);
32void path_ext_remove (path_t *path);
33void path_ext_replace (path_t *path, char *ext);
34
35
36#endif
Path Structure.
Definition: path.h:15