Y
Hacker News
new
|
ask
|
show
|
jobs
by
senozhatsky
2336 days ago
I see. So when for a char pointer one needs to do
printf("%p\n", v);
the Generic call must look like this
displayln((const void *)v);
is it really better?
1 comments
shakna
2336 days ago
Or you could have the pointer be a pointer before you feed it to the function.
void* v; v = ...; ... displayln(v);
link
monocasa
2336 days ago
The amount of ellipsis shows that your solution is just as heavy weight.
link