ccm/lib/str.h

21 lines
332 B
C

#ifndef CCM_STR_H
#define CCM_STR_H
#include "commons.h"
typedef struct {
size_t size;
size_t capacity;
char* value;
} str_t;
void str_init(str_t* self);
void str_free(str_t* self);
ssize_t str_find(str_t* self, char c);
void str_push(str_t* self, char c);
void str_push_cstr(str_t* self, char const* rhs);
#endif