A programming hint
Alain Williams
addw at root44.UUCP
Tue Jul 23 21:09:10 AEST 1985
I have read (some) of the plethora of articles on overlapping moves.
The consensus is that it working is implementation dependent.
This is unfortunate as I do this quite alot, it works on all my
local machines.
If your machine will NOT work in the way I expect I would be grateful
if you could tell me.
If there is sufficient interest I will sumaraise the replies.
(To remind, the question is that will the following code fill fred[]
with spaces:
char fred[10];
fred[0] = ' ';
strncpy(&fred[1], &fred[0], 9);
)
--
Alain Williams,
Root Computers Ltd, London, England.
<UK-net>!{hrc63|qmc-cs|edai|kcl-cs|ukc|glasgow|ist|jmccfr|west44
ubu|rlvd|pmllab|stc}!root44!addw
{unisoft|deccra}!root44!addw
root44!{rootcl|rootis}!addw
More information about the Comp.lang.c
mailing list