Assigning Void Pointer, Thanks for the Help!

Jim Bittman jmbj at grebyn.com
Mon Feb 19 16:51:56 AEST 1990


Thanks for all the help.  I received a number of responses
immediately, and ALL WERE CORRECT!!
The correct way to assign the null pointer is:

	myint = * (int *) varptr[5];

where varptr[5] is an array of void pointers.  I have tried
this and it works (with Turbo C 2.0).

Thanks Again,
Jim Bittman, jmbj at grebyn.com



More information about the Comp.lang.c mailing list