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#include <stdlib.h>
13
14
16typedef struct {
17 char *buffer;
18 char *root;
19 size_t capacity;
20} path_t;
21
22
23path_t *path_init (const char *prefix, char *string);
24void path_free (path_t *path);
25path_t *path_clone (path_t *string);
26path_t *path_clone_push (path_t *path, char *string);
27char *path_get (path_t *path);
28char *path_last_get (path_t *path);
29bool path_is_root (path_t *path);
30void path_pop (path_t *path);
31void path_push (path_t *path, char *string);
32void path_push_subdir (path_t *path, char *string);
33char *path_ext_get (path_t *path);
34void path_ext_remove (path_t *path);
35void path_ext_replace (path_t *path, char *ext);
36
37
38#endif
Path Structure.
Definition: path.h:16