diff --git a/src/server/string-malloc.h b/src/server/string-malloc.h new file mode 100644 index 0000000000000000000000000000000000000000..139c853b1fced90c51b2a0813447f99117a46d46 --- /dev/null +++ b/src/server/string-malloc.h @@ -0,0 +1,20 @@ +/* + * Malloc wrappers for the string package. + * + * These functions call smalloc and also counts + * how many allocated strings there are. + */ + +extern void * +string_malloc(size_t size); + + +extern void +string_free(void * ptr); + +extern void * +string_realloc (void * ptr, + size_t size); + +extern void +dump_string_alloc_counts(FILE *stat_file);