cstring · Section 3
cstring_get_mprocs
NAME
cstring_get_mprocs - get the memory management procedures for a string
LIBRARY
C Collections (libccollections, -lccollections)
SYNOPSIS
#include <ccollections/cstring.h> ccol_memmgmt_procs *cstring_get_mprocs(cstr s);
DESCRIPTION
This function returns the custom memory management procedures that the string was created with, or NULL when the string uses the default malloc/free allocators.
PARAMETERS
s String to query
RETURN VALUE
A pointer to the memory management procedures, or NULL for the defaults
NOTES
The structure belongs to the library and stays valid until the string is destroyed. Do not free it yourself, and do not use it after the destroy Asserts if s is NULL