a wrapper around strings

This commit is contained in:
Odweta
2024-02-04 18:51:42 +01:00
parent 53a282a3ea
commit 8832a2a4aa
9 changed files with 210 additions and 103 deletions
+21
View File
@@ -0,0 +1,21 @@
#include <odweta/string.h>
int main() {
//printf("before init\n");
string_t *s = string_from("test string");
//printf("before 1st println\n");
string_println(s);
//printf("before pushing chars\n");
string_push_chars(s, " appended");
//printf("before 2nd println\n");
string_println(s);
//printf("before cleanup\n");
string_cleanup(s);
//printf("before end\n");
return 0;
}