Update ChangeLog for 3.0.717.
[darkstat] / conv.h
1 /* darkstat 3
2 * copyright (c) 2001-2011 Emil Mikulic.
3 *
4 * conv.h: convenience functions.
5 */
6
7 #include <sys/types.h>
8
9 void *xmalloc(const size_t size);
10 void *xcalloc(const size_t num, const size_t size);
11 void *xrealloc(void *original, const size_t size);
12 char *xstrdup(const char *s);
13 char *split_string(const char *src, const size_t left, const size_t right);
14 void strntoupper(char *str, const size_t length);
15 int str_starts_with(const char *haystack, const char *needle);
16 char**split(const char delimiter, const char *str, unsigned int *num_chunks);
17 char *qs_get(const char *qs, const char *key);
18
19 void daemonize_start(void);
20 void daemonize_finish(void);
21 void privdrop(const char *chroot_dir, const char *privdrop_user);
22 void fd_set_nonblock(const int fd);
23 void fd_set_block(const int fd);
24
25 /* vim:set ts=3 sw=3 tw=78 expandtab: */