1 /* Compatibility functions for strsep and strtoq missing on Solaris */
6 #include "asterisk/compat.h"
8 char* strsep(char** str, const char* delims)
19 if (strchr(delims,**str)!=NULL) {
26 /* There is no other token */
33 int setenv(const char *name, const char *value, int overwrite)
38 buflen = strlen(name) + strlen(value) + 2;
39 if ((buf = malloc(buflen)) == NULL)
42 if (!overwrite && getenv(name))
45 snprintf(buf, buflen, "%s=%s", name, value);
53 int unsetenv(const char *name)