shithub: scc

ref: 3e0c85ff63fcc55aa3874a9d64e0c6a2c45e943a
dir: /libc/src/malloc.h/

View raw version
/* See LICENSE file for copyright and license details. */

#include <stdlib.h>

/* minimum amount of required units */
#define NALLOC 10000

typedef union header Header;
union header {
	struct hdr {
		Header *next;
		size_t size;
	} h;
	/* most restrictive type fixes the union size for alignment */
	_ALIGNTYPE most;
};

extern void *_prevchunk(Header *hp);