home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GEMini Atari
/
GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso
/
zip
/
mint
/
mntlib16.lzh
/
MNTLIB16
/
NICE.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-08-03
|
392b
|
25 lines
/*
* nice() `emulation' by Dave Gymer
* I've never been too sure what this should return; my SysV quick
* ref seems to say "-20 to +19, or -1 on error". Hmm.
*/
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
#include <mintbind.h>
extern long __mint;
int
nice(p)
int p;
{
if (__mint)
return Pnice(p);
else {
errno = EINVAL;
return -1;
}
}