Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!decvax!harpo!floyd!whuxlb!pyuxll!eisx!npoiv!npois!hogpc!houxn!4341shn From: 4341shn@houxn.UUCP (S.NURENBERG) Newsgroups: net.unix,btl.unix Subject: Question on the initialization of an interrupt vector in C Message-ID: <391@houxn.UUCP> Date: Wed, 17-Aug-83 10:55:28 EDT Article-I.D.: houxn.391 Posted: Wed Aug 17 10:55:28 1983 Date-Received: Wed, 17-Aug-83 23:34:54 EDT Lines: 28 I have a C question. I want to initialize some interrupt vectors on a M68000 processor card so that when the one board programmable timer causes an interrupt, it will be serviced. Below is the current way I do it (which works). What I want to know is why another way doesn't (see below): typedef long *P_ADDR; #define PTMVEC 0x78 main() { extern void clock(); P_ADDR *evec_ptr; evec_ptr = (P_ADDR *) PTMVEC; *evec_ptr =(P_ADDR) clock; } What I want to know is why the following line is syntactically incorrect (as far as cc says so) but seems to me logically more correct? typdef void (*)() P_ADDR; I appreciate any insight into this problem. Steven Nurenbeg houxn!4341shn