Typecast of Pointers to Functions

Gordon Cross crossgl at ingr.com
Thu Mar 30 01:04:59 AEST 1989


In article <7689 at killer.Dallas.TX.US> brian at killer.DALLAS.TX.US (Brian Pellerin) writes:
}I am looking for an equivalent way to specify a typecast of a pointer to 
}a function other than using typedef.  For Example:
}
}  typedef int (*FCN_PTR) ();
}  FCN_PTR     fcn_ptr1;
}  int         (*fcn_ptr2) (); 
}
}  fcn_ptr1 = (FCN_PTR) NULL;  /* Typecast using typedef */
}  fcn_ptr2 = (???????) NULL;  /* Do Not Use the typedef.  What Goes Here? */


Sure--

   fcn_ptr2 = (int (*)()) NULL;
-- 

Gordon Cross             UUCP:      uunet!ingr!crossgl     "all opinions are
111 Westminister Way     INTERNET:  crossgl at ingr.com        mine and not those
Madison, AL 35758        MA BELL:   (205) 772-7842          of my employer."



More information about the Comp.lang.c mailing list