added loading files
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user