void (*Problem)() = VoidFun;

Shakalneer swa at talcott.UUCP
Mon Apr 22 08:36:41 AEST 1985


> Can anyone explain this problem with void?  I give a parallel example
> with pointers to functions returning ints just as an example that
> works.  I don't understand why you can't have a pointer to a function
> returning void.
> 
>     void (*VoidPoint)();

This is a bug in the c compiler.  I once ran into it on a BSD 4.1 system.
It should work.  It won't.  You'll have to (yeech) declare it of type integer
instead of void.
-- 
Let the beauty we love be what we do.

Steven Augart
{harvard,wjh12}!talcott!swa		(617) 497-7412, 495-3864
swa%talcott at harvard.arpa		AUGART%HARVUNXT.BITNET



More information about the Comp.lang.c mailing list