aboutsummaryrefslogtreecommitdiff
path: root/src/i_str.h
blob: 18409bf879a9c08f983c7370fed4ab0715957620 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <string.h> 
#include <stdio.h>
#include <stdlib.h>

typedef struct {
  size_t len;
  size_t _bytes; //may be used in the future
  char* c; 
} str;

str* str_init(char*);
void str_free(str*);
void str_push(str*, char*);
void str_clear(str*);