2005-11-18 18:54:58 +03:00
|
|
|
/*
|
2006-01-20 17:20:24 +03:00
|
|
|
* (C)opyright MMIV-MMVI Anselm R. Garbe <garbeam at gmail dot com>
|
2005-11-18 18:54:58 +03:00
|
|
|
* See LICENSE file for license details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
|
|
|
#ifndef nil
|
|
|
|
#define nil (void *)0
|
|
|
|
#endif
|
|
|
|
|
2005-12-08 03:31:23 +03:00
|
|
|
/* emallocz.c */
|
|
|
|
void *cext_emallocz(size_t size);
|
2005-11-18 18:54:58 +03:00
|
|
|
|
|
|
|
/* estrdup.c */
|
2005-12-06 17:56:57 +03:00
|
|
|
char *cext_estrdup(const char *s);
|
2005-11-18 18:54:58 +03:00
|
|
|
|
|
|
|
/* strlcat.c */
|
2005-12-06 17:56:57 +03:00
|
|
|
size_t cext_strlcat(char *dst, const char *src, size_t siz);
|
2005-11-18 18:54:58 +03:00
|
|
|
|
|
|
|
/* strlcpy.c */
|
2005-12-06 17:56:57 +03:00
|
|
|
size_t cext_strlcpy(char *dst, const char *src, size_t siz);
|
2005-11-18 18:54:58 +03:00
|
|
|
|
|
|
|
/* strtonum.c */
|
2005-12-21 18:18:11 +03:00
|
|
|
long long cext_strtonum(const char *numstr, long long minval,
|
|
|
|
long long maxval, const char **errstrp);
|
2005-11-18 18:54:58 +03:00
|
|
|
|
|
|
|
/* tokenize.c */
|
2005-12-06 17:56:57 +03:00
|
|
|
size_t cext_tokenize(char **result, size_t reslen, char *str, char delim);
|