-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstralloc.h
24 lines (21 loc) · 828 Bytes
/
stralloc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef _STRALLOC_H____
#define _STRALLOC_H____
typedef struct stralloc {
char *s;
long long len;
long long alloc;
} stralloc;
extern int stralloc_readyplus(stralloc *, long long);
extern int stralloc_catb(stralloc *, const void *, long long);
extern int stralloc_cats(stralloc *, const void *);
extern int stralloc_cat(stralloc *, stralloc *);
extern int stralloc_copyb(stralloc *, const void *, long long);
extern int stralloc_copys(stralloc *, const void *);
extern int stralloc_copy(stralloc *, stralloc *);
extern int stralloc_append(stralloc *, const void *);
extern int stralloc_0(stralloc *);
extern void stralloc_free(stralloc *);
extern int stralloc_catnum(stralloc *, long long);
extern int stralloc_copynum(stralloc *, long long);
extern int stralloc_catnum0(stralloc *, long long, long long);
#endif