4 ms·
Actually C disallows converting function pointers to/from void pointers.
by aidenn0 12y ago
Actually C disallows converting function pointers to/from void pointers.
- davidgerard 12y agoCan you get away with that in pre-ANSI C? I wouldn't be surprised.
- aidenn0 12y agofor pre-ANSI C most of these questions are answered by "it depends on the compiler" which is why ANSI C happened. Of course the answer is still "it depends on the compiler" for this behavior, since it's not defined what it does in ANSI C, just that it's not portable to do it.
- davidgerard 12y agoI remember working on a Fujitsu box in 1993, which used some sort of weird System V Unix with pre-ANSI C and weirdly abbreviated man pages in Engrish. (shudder) Yeah.