return sl;
}
-
-/**
- * cdk_strlist_next:
- * @root: the opaque string list.
- * @r_str: optional argument to store the string data.
- *
- * Return the next string list node from @root. The optional
- * argument @r_str return the data of the current (!) node.
- **/
-cdk_strlist_t
-cdk_strlist_next (cdk_strlist_t root, const char **r_str)
-{
- cdk_strlist_t node;
-
- if (!root)
- return NULL;
-
- if (r_str)
- *r_str = root->d;
- for (node = root->next; node; node = node->next)
- return node;
-
- return NULL;
-}
-
-
const char *
_cdk_memistr (const char *buf, size_t buflen, const char *sub)
{
void cdk_strlist_free (cdk_strlist_t sl);
cdk_strlist_t cdk_strlist_add (cdk_strlist_t * list, const char *string);
- cdk_strlist_t cdk_strlist_next (cdk_strlist_t root, const char **r_str);
const char *cdk_check_version (const char *req_version);
/* UTF8 */
char *cdk_utf8_encode (const char *string);