summaryrefslogtreecommitdiff
path: root/src/platform/path.h
blob: 73063ea71ab46a777984224e26001421d46d4ebf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/**
 * @file path.h
 * @brief
 * @date 2024-03-11
 * @copyright Copyright (c) 2024
 */
#pragma once

#include "str.h"

typedef struct path_opt {
  str8 path;
  bool has_value;
} path_opt;

path_opt path_parent(arena* a, const char* path);  // TODO: convert to using str8