[net.lang.c] A programming hint

addw@root44.UUCP (Alain Williams) (07/23/85)

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