home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Gadgets 1
/
ADE-1.bin
/
ade-dist
/
g77-0.5.15-src.tgz
/
tar.out
/
fsf
/
g77
/
f
/
runtime
/
libF77
/
signal_.c
< prev
next >
Wrap
C/C++ Source or Header
|
1996-09-28
|
439b
|
29 lines
#include "f2c.h"
#ifndef RETSIGTYPE
/* we shouldn't rely on this... */
#ifdef KR_headers
#define RETSIGTYPE int
#else
#define RETSIGTYPE void
#endif
#endif
typedef RETSIGTYPE (*sig_type)();
#ifdef KR_headers
extern sig_type signal();
ftnint signal_(sigp, proc) integer *sigp; sig_type proc;
#else
#include "signal.h"
ftnint signal_(integer *sigp, sig_type proc)
#endif
{
int sig;
sig = (int)*sigp;
signal(sig, proc);
return 0;
}