Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!nbires!hao!boulder!sunybcs!rutgers!princeton!mind!tiger!wei From: wei@tiger.Princeton.EDU (P Wei) Newsgroups: comp.lang.c Subject: how do I initialize a function pointer to be NULL ? Message-ID: <197@tiger.Princeton.EDU> Date: Thu, 10-Sep-87 21:25:54 EDT Article-I.D.: tiger.197 Posted: Thu Sep 10 21:25:54 1987 Date-Received: Sat, 12-Sep-87 15:50:13 EDT Organization: EE, Princeton University Lines: 8 Keywords: NULLFUNC If p is declared as : struct x { int (*p)(); }; Now I want to initialize a variable y which is a structure x. struct x y = { NULLFUNC }; The question is what should I put into the #define NULLFUNC .... ? (I am using Microsoft C 4.0). Thanks for your help. HP Wei princeton!tiger!wei