All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
strpool.c File Reference


const char * html_string (const char *str)
const char * make_string (char *token, char **end)
const char * quote_string (const char *str)
const char * save_string (const char *str)
 Smart strdup. More...
int strpool_addstr (strpool_t *strpool, const char *str)
strpool_tstrpool_build (const char *strings, int size)
void strpool_delete (strpool_t *strpool)
strpool_tstrpool_new (void)

Function Documentation

const char* html_string ( const char *  str)
const char* make_string ( char *  token,
char **  end 
const char* quote_string ( const char *  str)
const char* save_string ( const char *  str)

Smart strdup.

Create a unique copy of a string. If the same string has been seen before, does not create a new copy but rather returns the previously seen string.

strThe string to copy.
The unique copy of the string.
int strpool_addstr ( strpool_t strpool,
const char *  str 
strpool_t* strpool_build ( const char *  strings,
int  size 
void strpool_delete ( strpool_t strpool)
strpool_t* strpool_new ( void  )