21 #ifndef __EDELIB_MISSING_H__
22 #define __EDELIB_MISSING_H__
24 #include "edelib-global.h"
42 EDELIB_API
int edelib_setenv(
const char* name,
const char* value,
int overwrite);
53 EDELIB_API
unsigned int edelib_strnlen(
const char* str,
unsigned int maxlen);
59 EDELIB_API
char*
edelib_strndup(
const char* str,
unsigned int maxlen);
67 EDELIB_API
unsigned long edelib_strlcpy(
char* dst,
const char* src,
unsigned long sz);
75 EDELIB_API
unsigned long edelib_strlcat(
char* dst,
const char* src,
unsigned long sz);
81 EDELIB_API
int edelib_scandir(
const char* dir,
struct dirent*** namelist,
82 int (*
filter)(
const struct dirent* name),
83 int (*compar)(
struct dirent** n1,
struct dirent** n2));
int edelib_scandir(const char *dir, struct dirent ***namelist, int(*filter)(const struct dirent *name), int(*compar)(struct dirent **n1, struct dirent **n2))
unsigned long edelib_strlcat(char *dst, const char *src, unsigned long sz)
unsigned long edelib_strlcpy(char *dst, const char *src, unsigned long sz)
int edelib_alphasort(struct dirent **n1, struct dirent **n2)
int edelib_setenv(const char *name, const char *value, int overwrite)
int edelib_daemon(int nochdir, int noclose)
int edelib_unsetenv(const char *name)
unsigned int filter(const F &func, const T &container, T &ret)
Definition: Functional.h:38
char * edelib_strndup(const char *str, unsigned int maxlen)