reactos/rosapps/smartpdf/baseutils/strlist_util.h

29 lines
597 B
C
Raw Normal View History

/* Written by Krzysztof Kowalczyk (http://blog.kowalczyk.info)
The author disclaims copyright to this source code. */
#ifndef STRLIST_UTIL_H_
#define STRLIST_UTIL_H_
#ifdef __cplusplus
extern "C"
{
#endif
typedef struct StrList {
struct StrList * next;
char * str;
} StrList;
char * StrDupN(char *str, size_t len);
char * StrDup(char *str);
int StrList_Len(StrList **root);
BOOL StrList_InsertAndOwn(StrList **root, char *txt);
BOOL StrList_Insert(StrList **root, char *txt);
void StrList_Destroy(StrList **root);
#ifdef __cplusplus
}
#endif
#endif