table of function ptrs SOLVED
Jim Vaxkiller
jlh at loral.UUCP
Tue Jan 13 03:34:57 AEST 1987
Last friday I posted a question on making a table of pointers to functions
returning void. It seemed that when the functions returned ints everything
was fine, but when I tried to return voids the compiler broke. Well,
after reading my mail monday I moved my program from our 4.2BSD machine
to the 4.3BSD machine. Guess what? The sucker not only compiles with no
problem, but lint loves it as well. I had mentioned in the original
article that I knew of the problem 4.2 had with void and had typedefed
voids to ints, but that didn't help a bit.
The moral? Under 4.2, if you ever have a problem with voids if at all
possible try the program on another compiler before wasting too much
time on it. Last summer I wasted 2-3 days before being told to typedef
voids to ints, last week I wasted half a day before posting my plea for
help. Thanks to all who replied.
Jim
Jim Harkins
Loral Instrumentation, San Diego
{ucbvax, ittvax!dcdwest, akgua, decvax, ihnp4}!sdcsvax!sdcc6!loral!jlh
More information about the Comp.lang.c
mailing list