16 lines
267 B
C
16 lines
267 B
C
#ifndef MY_STRING_H_
|
|
#define MY_STRING_H_
|
|
|
|
typedef struct myStr
|
|
{
|
|
unsigned int capacity;
|
|
unsigned int len;
|
|
char* arr;
|
|
} MyString;
|
|
|
|
MyString newString(unsigned int init_capacity);
|
|
void addCharToString(MyString* str, char c);
|
|
void freeString(MyString* str);
|
|
|
|
#endif
|