diff options
| author | stkhan <personal@slickd.xyz> | 2022-05-13 18:15:43 +0000 |
|---|---|---|
| committer | stkhan <personal@slickd.xyz> | 2022-05-13 18:15:43 +0000 |
| commit | 2e81fbdf15168a5b6df291b7062d120156a5ce45 (patch) | |
| tree | 57de36552c6f46e43d8520ccf65acb80ef5f6c29 /sfm-0.4/util.c | |
| parent | 7a93f153bf5e088ab6e2da6fcc0518744cfd54af (diff) | |
Removed dwm scripts, sfm, , added scroll, and added dark theme to surf
Diffstat (limited to 'sfm-0.4/util.c')
| -rw-r--r-- | sfm-0.4/util.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/sfm-0.4/util.c b/sfm-0.4/util.c deleted file mode 100644 index 4aca4e0..0000000 --- a/sfm-0.4/util.c +++ /dev/null @@ -1,44 +0,0 @@ -/* See LICENSE file for copyright and license details. */ -#include <errno.h> -#include <stdarg.h> -#include <stdio.h> -#include <stdlib.h> -#include <string.h> - -#include "util.h" - -void * -ecalloc(size_t nmemb, size_t size) -{ - void *p; - p = calloc(nmemb, size); - FAIL_IF(p == NULL, "calloc"); - return p; -} - -void * -erealloc(void *p, size_t len) -{ - if ((p = realloc(p, len)) == NULL) - die("realloc: %s\n", strerror(errno)); - return p; -} - -void -die(const char *fmt, ...) -{ - va_list ap; - - va_start(ap, fmt); - (void)vfprintf(stderr, fmt, ap); - va_end(ap); - - if (fmt[0] != '\0' && fmt[strlen(fmt)-1] == ':') { - (void)fputc(' ', stderr); - perror(NULL); - } else { - (void)fputc('\n', stderr); - } - - exit(EXIT_FAILURE); -} |