25 lines
429 B
C
25 lines
429 B
C
#ifndef SK_STR_H
|
|
#define SK_STR_H
|
|
|
|
#include <stdlib.h>
|
|
#include <assert.h>
|
|
#include <string.h>
|
|
#include <stdarg.h>
|
|
#include <stdio.h>
|
|
|
|
struct str
|
|
{
|
|
size_t size;
|
|
size_t capacity;
|
|
char* value;
|
|
};
|
|
|
|
void str_init(struct str* self);
|
|
void str_free(struct str* self);
|
|
|
|
void str_push(struct str* self, char c);
|
|
void str_extend(struct str* self, char* src);
|
|
void str_format(struct str* self, char const* format, ...);
|
|
|
|
#endif
|