home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GEMini Atari
/
GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso
/
zip
/
mint
/
mntlib16.lzh
/
MNTLIB16
/
ALARM.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-08-03
|
310b
|
27 lines
/*
* alarm: a public domain alarm for MiNT (by ers)
*/
#include <errno.h>
#include <mintbind.h>
extern int __mint;
int
alarm(secs)
unsigned secs;
{
long r;
if (__mint == 0)
r = -EINVAL;
else
r = Talarm((long)secs);
if (r < 0) {
errno = -r;
r = -1;
}
return r;
}