some doxygen stuff. might not be kept.
2 /** @brief File description for doxygen missing. FIXME */
4 // This file is under GNU General Public License 3.0
10 #include "dynamic_api.h"
17 // new_string() - allocate a new string
20 // src (in) string to copy or NULL
21 // len (in) length of newly created string or 0 for default
24 // pointer to string object or NULL if out of memory
26 // calling with str and len is equivalent to strndup()
27 // calling with str but len=0 is equivalent to strdup()
28 // calling with str=NULL is equivalent to calloc()
30 DYNAMIC_API char * new_string(const char *src, size_t len);
33 // free_string() - free memory occupied by string
36 // s (in) pointer to string to free
38 DYNAMIC_API void free_string(char *s);
41 // string_dup() - duplicate a string
44 // src (in) string to duplicate
45 // len (in) length of newly created string or 0 for default
48 // pointer to copy or NULL if out of memory
50 DYNAMIC_API char * string_dup(const char *src, size_t len);