Loading...
Searching...
No Matches
str_buffer.h
Go to the documentation of this file.
1
8#pragma once
9
10#include <furi.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
22typedef struct {
23 char** owned_strings;
24 size_t n_owned_strings;
25} StrBuffer;
26
36const char* str_buffer_make_owned_clone(StrBuffer* buffer, const char* str);
37
44
45#ifdef __cplusplus
46}
47#endif
void str_buffer_clear_all_clones(StrBuffer *buffer)
Clears all owned duplicates.
Definition str_buffer.c:12
const char * str_buffer_make_owned_clone(StrBuffer *buffer, const char *str)
Makes a owned duplicate of the provided string.
Definition str_buffer.c:3
StrBuffer instance.
Definition str_buffer.h:22