Newsgroups: comp.lang.c Path: utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: strcpy wars, jeez! A proposed resolution. Message-ID: <1988Apr3.013733.28401@utzoo.uucp> Organization: U of Toronto Zoology References: <7712@apple.Apple.Com> <7485@brl-smoke.ARPA> Date: Sun, 3 Apr 88 01:37:33 GMT > ... The prototype would change ... to > char *strcpy(char *s1, char *s2) > since, as you pointed out, both s1 and s2 are possibly aliased and the > string pointed to by s2 is no longer guaranteed to be constant... The latter is quite irrelevant; const on a pointer does not mean that the thing pointed to is constant, just that attempts to modify it through that pointer are illegal. (If this double meaning of const strikes you as less than ideal, you're in good company.) -- "Noalias must go. This is | Henry Spencer @ U of Toronto Zoology non-negotiable." --DMR | {allegra,ihnp4,decvax,utai}!utzoo!henry