summaryrefslogtreecommitdiff
path: root/src/platform/path.h
blob: ce53339bf036bd0cf08daac1c93583253c9a2ad0 (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