home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari FTP
/
ATARI_FTP_0693.zip
/
ATARI_FTP_0693
/
Mint
/
mntlib32.zoo
/
alarm.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-02-19
|
393b
|
27 lines
/*
* alarm: a public domain alarm for MiNT (by ers)
*/
#include <errno.h>
#include <mintbind.h>
#include <limits.h>
extern int __mint;
unsigned int
alarm(secs)
unsigned secs;
{
long r;
if (__mint == 0)
return 0;
#ifndef __MSHORT__
if (secs > ((unsigned int) (LONG_MAX/1000)))
secs = ((unsigned int) (LONG_MAX/1000));
#endif
r = Talarm((long) secs);
return (unsigned int) r;
}