From 534657dd6fc2ee98159e41d2700554fed0da2c4e Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 18 Dec 2019 21:57:51 -0500 Subject: Refactor project structure --- compat.c | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 compat.c (limited to 'compat.c') 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 -#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 -- cgit