aboutsummaryrefslogtreecommitdiff
path: root/xmalloc.h
blob: 90d63031456381f1622344ae997d6ef72f53c7cf (plain)
1
2
3
4
5
6
7
8
9
#pragma once

#include <stddef.h>
#include "macros.h"

void *xmalloc(size_t size) XMALLOC;
void *xcalloc(size_t nmemb, size_t size) XMALLOC;
char *xstrdup(const char *str) XSTRDUP;
char *xasprintf(const char *format, ...) PRINTF(1) XMALLOC;