 |
Crossfire Server, Trunk
1.75.0
|
Go to the documentation of this file.
13 extern int buf_overflow(
const char *buf1,
const char *buf2,
size_t bufsize);
sstring add_refcount(sstring str)
This will increase the refcount of the string str.
void ss_dump_statistics(char *buf, size_t size)
A call to this function will cause the statistics to be dumped into specified buffer.
void init_hash_table(void)
Initialises the hash-table used by the shared string library.
int buf_overflow(const char *buf1, const char *buf2, size_t bufsize)
We don't want to exceed the buffer size of buf1 by adding on buf2!
int query_refcount(sstring str)
This will return the refcount of the string str.
sstring add_string(const char *str)
This will add 'str' to the hash table.
char * ss_dump_table(int what, char *buf, size_t size)
Dump the contents of the share string tables.
sstring find_string(const char *str)
Searches a string in the shared strings.
void free_string(sstring str)
This will reduce the refcount, and if it has reached 0, str will be freed.
const typedef char * sstring