Mercurial > libedl
comparison include/str.h @ 13:41b74137e201
include: make header guards sane
double underscores are reserved to the implementation by
the C standard
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Wed, 03 Apr 2024 20:48:51 -0400 |
parents | 0c98b46eaf73 |
children |
comparison
equal
deleted
inserted
replaced
12:0cc2555db371 | 13:41b74137e201 |
---|---|
1 #ifndef __edl__internal__str_h | 1 #ifndef EDL_INTERNAL_STR_H_ |
2 #define __edl__internal__str_h | 2 #define EDL_INTERNAL_STR_H_ |
3 | 3 |
4 #include <stddef.h> | 4 #include <stddef.h> |
5 | 5 |
6 typedef struct { | 6 typedef struct { |
7 size_t size; | 7 size_t size; |
12 int EDL_internal_string_init(EDL_internal_string* str); | 12 int EDL_internal_string_init(EDL_internal_string* str); |
13 int EDL_internal_string_allocate(EDL_internal_string* str, size_t new_capacity); | 13 int EDL_internal_string_allocate(EDL_internal_string* str, size_t new_capacity); |
14 int EDL_internal_string_append(EDL_internal_string* str, const char* data, const size_t length); | 14 int EDL_internal_string_append(EDL_internal_string* str, const char* data, const size_t length); |
15 void EDL_internal_string_free(EDL_internal_string* str); | 15 void EDL_internal_string_free(EDL_internal_string* str); |
16 | 16 |
17 #endif /* __edl__internal__str_h */ | 17 #endif /* EDL_INTERNAL_STR_H_ */ |