aboutsummaryrefslogtreecommitdiffstats
path: root/usr/klibc/calloc.c
blob: 53dcc6b2f6bf63acd661c485141beb4fd635dd83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/*
 * calloc.c
 */

#include <stdlib.h>
#include <string.h>

/* FIXME: This should look for multiplication overflow */

void *calloc(size_t nmemb, size_t size)
{
	return zalloc(nmemb * size);
}