blob: 79ee6b868492500484b5757d8ae441247b8943b9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#ifndef LSTD_STRING_H
#define LSTD_STRING_H
#include "memory.h"
#include "types.h"
#include <stdbool.h>
struct String {
char *value;
usize length;
};
typedef struct String String;
bool String_from_str(Allocator *allocator, String *string, const char *str);
void String_destroy(Allocator *allocator, String *string);
usize String_length(const String *string);
#endif // LSTD_STRING_H
|