Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!nrl-cmf!cmcl2!brl-adm!adm!dsill@NSWC-OAS.arpa From: dsill@NSWC-OAS.arpa (Dave Sill) Newsgroups: comp.lang.c Subject: Re: strcpy Message-ID: <12755@brl-adm.ARPA> Date: 1 Apr 88 14:06:58 GMT Sender: news@brl-adm.ARPA Lines: 18 >> It does indeed say that the copying stops after the null has been >> copied. But this in no way indicates that no more copying occurs after >> the copy of the null has been made. > >Huh? It means the copying does not stop until the null is copied. This reminds me of the Saturday Night Live sketch with Ed Asner as the nuclear plant manager going on vacation whose parting advice is "You can't use too much cooling water in a nuclear reactor." The intent of the statement: Strcpy copies string s2 to s1, stopping after the null char- acter has been moved. is that all characters in s2, up to and including the terminating null, are copied to s1. Nothing at all is said about the the order in which the copying takes place. To assume that all implementations copy from right-to-left or left-to-right is plainly wrong.