]>
jfr.im git - irc/quakenet/newserv.git/blob - lib/sstring-new.h
1 /* sstring.h - Declaration of "static strings" functions */
6 /* Externally visibly max string length */
7 #define SSTRING_MAX 512
9 typedef struct sstring
{
16 #ifdef COMPILING_SSTRING
18 /* Internal defines */
20 /* SSTRING_MAXLEN is the internal version of SSTRING_MAX which includes
21 * space for the trailing NUL */
22 #define SSTRING_MAXLEN (SSTRING_MAX + 1)
23 #define SSTRING_SLACK 8
24 #define SSTRING_ALLOC 16384
26 #define SSTRING_HASHSIZE 85243
28 #endif /* COMPILING_SSTRING */
30 sstring
*getsstring(const char *, int);
31 void freesstring(sstring
*);
32 int sstringcompare(sstring
*ss1
, sstring
*ss2
);
36 #endif /* __SSTRING_H */