4.1cBSD/usr/src/lib/libc/gen/valloc.c

Compare this file to the similar file:
Show the results in this format:

/* @(#)valloc.c	4.1 (Berkeley) 12/21/80 */
#include <valign.h>

char	*malloc();

char *
valloc(i)
	int i;
{
	char *cp = malloc(i + (VALSIZ-1));
	int j;

	j = ((int)cp + (VALSIZ-1)) &~ (VALSIZ-1);
	return ((char *)j);
}