Introduction
Introduction Statistics Contact Development Disclaimer Help
Remove unused helpers - noice - small file browser (mirror / fork from 2f30.org)
git clone git://git.codemadness.org/noice
Log
Files
Refs
README
LICENSE
---
commit a4c4570b0b249bebe74951f3ca8887ea6c644c12
parent b1935acd165dfe91f57ec9e814588cc33ec0e31f
Author: sin <[email protected]>
Date: Fri, 23 Aug 2019 10:57:54 +0100
Remove unused helpers
Diffstat:
M noice.c | 22 ----------------------
1 file changed, 0 insertions(+), 22 deletions(-)
---
diff --git a/noice.c b/noice.c
@@ -95,17 +95,6 @@ void printwarn(void);
void printerr(int, char *);
void *
-xmalloc(size_t size)
-{
- void *p;
-
- p = malloc(size);
- if (p == NULL)
- printerr(1, "malloc");
- return p;
-}
-
-void *
xrealloc(void *p, size_t size)
{
p = realloc(p, size);
@@ -114,17 +103,6 @@ xrealloc(void *p, size_t size)
return p;
}
-char *
-xstrdup(const char *s)
-{
- char *p;
-
- p = strdup(s);
- if (p == NULL)
- printerr(1, "strdup");
- return p;
-}
-
/* Some implementations of dirname(3) may modify `path' and some
* return a pointer inside `path'. */
char *
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.