wmii/libcext/cext.h

30 lines
680 B
C
Raw Normal View History

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
/* emallocz.c */
void *cext_emallocz(size_t size);
2005-11-18 18:54:58 +03:00
/* estrdup.c */
char *cext_estrdup(const char *s);
2005-11-18 18:54:58 +03:00
/* strlcat.c */
size_t cext_strlcat(char *dst, const char *src, size_t siz);
2005-11-18 18:54:58 +03:00
/* strlcpy.c */
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 */
size_t cext_tokenize(char **result, size_t reslen, char *str, char delim);