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 char *root;
18 size_t capacity;
19} path_t;
20
21
22path_t *path_init (char *prefix, char *string);
23void path_free (path_t *path);
24path_t *path_clone (path_t *string);
25path_t *path_clone_push (path_t *path, char *string);
26char *path_get (path_t *path);
27char *path_last_get (path_t *path);
28bool path_is_root (path_t *path);
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