Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!rutgers!mcnc!uvaarpa!murdoch!murdoch.acc.virginia.edu!aj3u From: aj3u@jade.cs.virginia.edu (Asim Jalis) Newsgroups: comp.lang.c Subject: "void **" : Is it valid and what does it mean? Message-ID: Date: 28 May 91 01:36:33 GMT Sender: usenet@murdoch.acc.Virginia.EDU Distribution: comp Organization: University of Virginia, Charlottesville, VA 22903 Lines: 31 I want to write a function that takes as arguments pointers to pointers to any type. As in, func(void **p) { ... } main() { int *i; float *f; char *c; func(&i); func(&f); func(&c); } However, the compiler gives me warnings about incompatible type for all the function calls. The code itself works fine, but I was wondering if somehow I could also get rid of the warnings, perhaps by doing this in a more elegant way. Basically what I want is a type that would coerce to a pointer to a pointer to a type, for any type. Sort of one level beyond simple "void *". Any help would be appreciated. Asim Jalis.