This commit is contained in:
2026-02-11 13:20:47 +01:00
commit d3645f663c
30 changed files with 403 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
#ifndef MY_STRINGS_H
#define MY_STRINGS_H
#include <strings.h>
struct string{
char *data;
size_t size;
};
struct string *my_str_init(const char* s, size_t size);
void my_str_destroy(struct string *str);
void my_str_puts(struct string *str);
struct string *my_str_n_cat(struct string *str1, const char *str2, size_t str2_len);
#endif