]>
jfr.im git - irc/quakenet/newserv.git/blob - lib/sstring.h
1 /* sstring.h - Declaration of "static strings" functions */
6 /* Externally visibly max string length */
7 #define SSTRING_MAX 512
9 #ifdef COMPILING_SSTRING
10 /* Internal version of structure */
22 /* Internal defines */
24 /* SSTRING_MAXLEN is the internal version of SSTRING_MAX which includes
25 * space for the trailing NUL */
26 #define SSTRING_MAXLEN (SSTRING_MAX + 1)
27 #define SSTRING_SLACK 8
28 #define SSTRING_STRUCTALLOC 4096
29 #define SSTRING_DATAALLOC 4096
32 /* External (simpler) version */
39 #endif /* COMPILING_SSTRING */
41 sstring
*getsstring(const char *, int);
42 void freesstring(sstring
*);
43 int sstringcompare(sstring
*ss1
, sstring
*ss2
);
47 #endif /* __SSTRING_H */