aboutsummaryrefslogtreecommitdiff
path: root/compat.c
diff options
context:
space:
mode:
Diffstat (limited to 'compat.c')
-rw-r--r--compat.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/compat.c b/compat.c
deleted file mode 100644
index 082a602..0000000
--- a/compat.c
+++ /dev/null
@@ -1,16 +0,0 @@
-#include <string.h>
-#include "config.h"
-
-#ifndef HAVE_STRSEP
-// credit: Dan Cross via https://unixpapa.com/incnote/string.html
-char *strsep(char **sp, char *sep)
-{
- char *p, *s;
- if (sp == NULL || *sp == NULL || **sp == '\0') return(NULL);
- s = *sp;
- p = s + strcspn(s, sep);
- if (*p != '\0') *p++ = '\0';
- *sp = p;
- return(s);
-}
-#endif \ No newline at end of file