-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMyString.h
More file actions
38 lines (28 loc) · 699 Bytes
/
MyString.h
File metadata and controls
38 lines (28 loc) · 699 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
* File: MyString.h
* Author: Tamaran
*
* Created on 13. Januar 2013, 23:29
*/
#ifndef MyString_H
#define MyString_H
#ifdef __cplusplus
extern "C" {
#endif
#include "std.h"
typedef struct{
uint size;
char* data;
} MyString;
MyString* MyString_create(char* str);
MyString* MyString_copy(MyString* other);
void MyString_delete(MyString* s);
void MyString_print(MyString* s);
void MyString_append(MyString* s, char* d);
void MyString_pathAppend(MyString* s, char* b);
void MyString_deleteLastChar(MyString* s);
void MyString_deleteRange(MyString* s, uint from);
#ifdef __cplusplus
}
#endif
#endif /* MyString_H */