summaryrefslogtreecommitdiffstats
path: root/mem.c
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2026-03-14 19:45:55 +0800
committerSadeep Madurange <sadeep@asciimx.com>2026-03-14 19:49:37 +0800
commitc39a32d111e7cccb9ef2063d6723d91ba3755565 (patch)
treecfc69cdd08342fa2795f04ec59798c652fd1bb3a /mem.c
parent3eccf3989f17668676fb42b73843578b87eef569 (diff)
downloadcvn-c39a32d111e7cccb9ef2063d6723d91ba3755565.tar.gz
Implement status command in C.
Diffstat (limited to 'mem.c')
-rw-r--r--mem.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/mem.c b/mem.c
deleted file mode 100644
index c1b1216..0000000
--- a/mem.c
+++ /dev/null
@@ -1,22 +0,0 @@
-#include <err.h>
-#include <stdlib.h>
-
-#include "mem.h"
-
-void *_xmalloc(size_t s, const char *file, int line)
-{
- void *p;
-
- if (!(p = malloc(s)))
- err(1, "%s:%d: malloc", file, line);
- return p;
-}
-
-void *_xrealloc(void *ptr, size_t s, const char *file, int line)
-{
- void *p;
-
- if (!(p = realloc(ptr, s)))
- err(1, "%s:%d: realloc", file, line);
- return p;
-}