From f6df08e0c314e51674351aa15d9b5ab0bcc00b52 Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Sun, 11 Nov 2012 17:47:48 +0100 Subject: [PATCH] add/fix more comments --- sndiod/utils.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sndiod/utils.c b/sndiod/utils.c index 30358fc..67f6670 100644 --- a/sndiod/utils.c +++ b/sndiod/utils.c @@ -139,6 +139,9 @@ panic(void) _exit(1); } +/* + * allocate a (small) abount of memory, and abort if it fails + */ void * xmalloc(size_t size) { @@ -154,12 +157,18 @@ xmalloc(size_t size) return p; } +/* + * free memory allocated with xmalloc() + */ void xfree(void *p) { free(p); } +/* + * xmalloc-style strdup(3) + */ char * xstrdup(char *s) {