home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CDPD Public Domain Collection for CDTV 3
/
CDPDIII.bin
/
pd
/
programming
/
utils
/
dialoglib
/
setuphook.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1993-02-15
|
275 b
|
13 lines
#include <exec/types.h>
#include <utility/hooks.h>
#include <clib/alib_protos.h>
VOID SetupHook( struct Hook *hook, ULONG (*c_function)(), VOID *userdata )
{
extern ULONG HookEntry();
hook->h_Entry = HookEntry;
hook->h_SubEntry = c_function;
hook->h_Data = userdata;
}