added loading files

This commit is contained in:
FantasyPvP
2024-11-08 10:36:07 +00:00
parent be32741af2
commit e7ecffa65a
8 changed files with 283 additions and 29 deletions
+5
View File
@@ -1,5 +1,6 @@
#ifndef DYNSTR_H
#define DYNSTR_H
#include <stdio.h>
typedef struct {
int size;
@@ -13,6 +14,10 @@ String_t str_from_chars(char* string);
String_t str_from_slice(char* string, int len);
String_t str_from_file(FILE* file);
int str_push_str(String_t* string, char* other);
String_t str_new();
String_t* str_lines(String_t* self, int* numlines);