Utility functions | |
| void | xfree (void *) |
| char * | xstrdup (const char *) |
Functions | |
| void * | xmalloc (size_t size) |
| void * | xrealloc (void *p, size_t size) |
| char * | mm_unquote (const char *string) |
| char * | mm_uncomment (const char *string) |
| char * | xstrsep (char **stringp, const char *delim) |
| char * | mm_stripchars (char *input, char *strip) |
| char * | mm_addchars (char *input, char *add, u_int16_t linelength) |
| char* mm_addchars | ( | char * | input, | |
| char * | add, | |||
| u_int16_t | linelength | |||
| ) |
Adds characters to a string at given positions
| input | The string to which to add characters | |
| add | The character string to add | |
| linelength | The position where to add the character |
| char* mm_stripchars | ( | char * | input, | |
| char * | strip | |||
| ) |
Strips a given character set from a string
| input | The string which to strip | |
| strip | The character set to strip off |
| char* mm_uncomment | ( | const char * | string | ) |
Removes MIME comments from a string
| string | The string to uncomment |
| char* mm_unquote | ( | const char * | string | ) |
Unquotes a string
| string | The quoted string to unquote |
| void* xmalloc | ( | size_t | size | ) |
Allocates a block of memory
| size | The size of the memory region to allocate |
| void* xrealloc | ( | void * | p, | |
| size_t | size | |||
| ) |
realloc() wrapper
| p | Pointer to a memory region which should be reallocated | |
| size | The new size of the memory region |
| char* xstrsep | ( | char ** | stringp, | |
| const char * | delim | |||
| ) |
separate strings
| stringp | A pointer to the string being splitted | |
| delim | The delimeter string |
1.5.1