File: stralloc.h

package info (click to toggle)
dq 20230101-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,020 kB
  • sloc: ansic: 8,269; makefile: 363; sh: 176; python: 82
file content (23 lines) | stat: -rw-r--r-- 785 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef _STRALLOC_H____
#define _STRALLOC_H____

typedef struct stralloc {
    unsigned 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_catnum0(stralloc *, long long, long long);

#endif