summaryrefslogtreecommitdiffstats
path: root/xmalloc.c
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2018-10-08 19:31:57 +0200
committerpgen <p.gen.progs@gmail.com>2018-10-08 19:31:57 +0200
commit7ec39d7df253dd6f7dc92854e5582949dfa823a5 (patch)
tree1f83249dc7b6282d0411bbb958bd0d56908a5e0a /xmalloc.c
parent952504585c8e67a59114cbc68153ce46140aff5d (diff)
Add/improve comments, reformat and clarify code
Diffstat (limited to 'xmalloc.c')
-rw-r--r--xmalloc.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/xmalloc.c b/xmalloc.c
index 80622ae..3e9633e 100644
--- a/xmalloc.c
+++ b/xmalloc.c
@@ -4,15 +4,13 @@
/* Created by Kevin Locke (from numerous canonical examples) */
/* */
+/* Adapted for use by smenu */
+/* */
/* I hereby place this file in the public domain. It may be freely */
/* reproduced, distributed, used, modified, built upon, or otherwise */
/* employed by anyone for any purpose without restriction. */
/* """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" */
-/* ================= */
-/* Customized malloc */
-/* ================= */
-
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -20,6 +18,9 @@
#include "xmalloc.h"
+/* ================= */
+/* Customized malloc */
+/* ================= */
void *
xmalloc(size_t size)
{