ack/modules/src/system/break.c

19 lines
368 B
C

/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Id$ */
#include "system.h"
#include <unistd.h>
char *
sys_break(incr)
int incr;
{
register char *brk = sbrk(incr);
if (brk == (char *) 0 || brk == (char *)-1)
return ILL_BREAK;
return brk;
}