1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
#ifndef UTILS_USTR_H
#define UTILS_USTR_H

#include <stdbool.h>
#include <stddef.h>

struct UStr
{
    size_t len;
    char cstr[];
};

struct UStr *makeUStr_(const char *s, bool *added);
struct UStr *makeUStr(const char *s);

#endif // UTILS_USTR_H