blob: 301971c95f70ee445fa765666827702a651bcd3f (
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));
#endif /* !ORYX_ALLOC_H */
|