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

#include <stddef.h>
#include <string.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;