unstack - fix ipcvecs
[minix.git] / commands / ash / bltin / stalloc.c
blob381271ac5af1adebe13718c827cbcd0a160d0af7
1 /*
2 * Copyright (C) 1989 by Kenneth Almquist. All rights reserved.
3 * This file is part of ash, which is distributed under the terms specified
4 * by the Ash General Public License. See the file named LICENSE.
5 */
7 #include "../shell.h"
10 void error();
11 pointer malloc();
14 pointer
15 stalloc(nbytes) {
16 register pointer p;
18 if ((p = malloc(nbytes)) == NULL)
19 error("Out of space");
20 return p;