Hacker News new | ask | show | jobs
by qwyxzy 3711 days ago
> Functions like memcpy or malloc cannot legally be written in C without breaking this behavior

Sorry, I don't understand this. Does this mean that these C standard library functions cannot be written in C without breaking the ISO C standard?

1 comments

Parent is wrong. char, signed char, unsigned char, and void pointers can all legally alias anything. Those functions can be written in standard ISO C.