K
Keith Thompson
Mark McIntyre said:Ok, I'll bite. For a weak definition of copy, which doen't necessarily
include the result being identical to the original.
Fair enough.
Bear in mind that it does not necessarily create a copy of the value,
since the value is type-converted en route if required. (6.5.16.1 p2).
(I admit I left the word "strings" out after the word "copy", but then
strings don't exist in C so it seemed reasonable not to leave it
in...)
Here you lost me. What do you mean by "strings don't exist in C"?
There is no string type, but a string is defined in C99 7.1.1p1 as "a
contiguous sequence of characters terminated by and including the
first null character." Strings certainly do exist in C.