Data Structures | |
struct | strpool_s |
Typedefs | |
typedef struct strpool_s | strpool_t |
Functions | |
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_t * | strpool_build (const char *strings, int size) |
void | strpool_delete (strpool_t *strpool) |
strpool_t * | strpool_new (void) |
const char* make_string | ( | char * | token, |
char ** | end | ||
) |
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.
str | The string to copy. |
void strpool_delete | ( | strpool_t * | strpool | ) |
strpool_t* strpool_new | ( | void | ) |