Pristine Ack-5.5
[Ack-5.5.git] / modules / src / system / break.c
1 /*
2  * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
3  * See the copyright notice in the ACK home directory, in the file "Copyright".
4  */
5 /* $Id: break.c,v 1.4 1994/06/24 11:24:11 ceriel Exp $ */
6
7 #include <system.h>
8
9 char *sbrk();
10
11 char *
12 sys_break(incr)
13         int incr;
14 {
15         char *sbrk();
16         register char *brk = sbrk(incr);
17
18         if (brk == (char *) 0 || brk == (char *)-1)
19                 return ILL_BREAK;
20         return brk;
21 }