Sep 4, 2007
It’s the void pointer’s job to stand in for other pointer types. In ANSI C99, the “cast” is implied when you pointers to or from void-star, and redundant when supplied explicitly.

Yes, yes, I know, you can’t assign from void-star without a cast in C++. Stop using C++. And look askance at any pointer cast in straight C code.

Matasano Chargen doesn’t like static_cast

Comments gratefully appreciated. Please send them to me by any method of your choice and I'll include them here.

archive
projects
writings
videos
subscribe
Mastodon
RSS (?)
twtxt (?)
Station (?)