projects
/
unix-history
/ blame_incremental
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blob
|
blame
(non-incremental) |
history
|
HEAD
date and time created 80/12/21 16:50:39 by wnj
[unix-history]
/
usr
/
src
/
lib
/
libc
/
gen
/
valloc.c
This page requires JavaScript to run. Use
this page
instead.
... / ...
Commit
Line
Data
1
/* @(#)valloc.c 4.1 (Berkeley) %G% */
2
#include <valign.h>
3
4
char *malloc();
5
6
char *
7
valloc(i)
8
int i;
9
{
10
char *cp = malloc(i + (VALSIZ-1));
11
int j;
12
13
j = ((int)cp + (VALSIZ-1)) &~ (VALSIZ-1);
14
return ((char *)j);
15
}