|
|
|
|
|
by caf
3695 days ago
|
|
The original 1989 ANSI C specification stated, in "4.11.2.1 The memcpy function": If copying takes place between objects that overlap, the behavior is undefined. So it has been this way in C since the first official standard. I don't have a first edition K&R so I can't see what that said, though. |
|
Well, it may have been undefined, but in practice the behaviour was standardised and couldn't be changed without breaking existing code... which is basically C in a nutshell.