aboutsummaryrefslogtreecommitdiff
path: root/src/types/str.h
blob: 54f27e627d7207294054a60bbc858cb7200cc6ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef __STR_H
#define __STR_H

#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_pushl(str*, char*, size_t);
void str_clear(str*);
void str_popf(str*, int);
#endif //__STR_H