summaryrefslogtreecommitdiff
path: root/test/zero.c
blob: 15c0890e688f9bb8a3a603bce83eac6d02325e9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#define _POSIX_C_SOURCE 200809L
#include <stdio.h>
#include <unistd.h>
#include "mapalloc.h"

int main(void)
{
	char *ptr = MA_malloc(0);
	long pagesize = sysconf(_SC_PAGESIZE);
	printf("ptr: %p, pagesize %ld\n", ptr, pagesize);
	ptr[0] = '\0';
	printf("shouldn't get here\n");
}