blob: 80e2384f83cd1e7ddcefbb46149da108ec6bf5e3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#ifndef ORYX_ALLOC_H
#define ORYX_ALLOC_H
#include <stddef.h>
#include "common.h"
/* Allocate a buffer of NMEMB elements of size SIZE. If PTR is non-null then
reallocate the buffer it points to. Aborts on out-of-memory or overflow. */
void *bufalloc(void *ptr, size_t nmemb, size_t size)
__attribute__((returns_nonnull, alloc_size(2, 3)));
#endif /* !ORYX_ALLOC_H */
|