From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu From: ozan s yigit Message-ID: References: <3C914E64.D5D00447@null.net>, <4da3d9af.0203151259.13de5c01@posting.google.com>, <3C96C2DB.3DAF0E0A@null.net> Subject: Re: macro fun [Re: [9fans] plan or side effect] Date: Tue, 19 Mar 2002 16:01:53 +0000 Topicbox-Message-UUID: 69fa5bc2-eaca-11e9-9e20-41e7f4b1d025 "Douglas A. Gwyn" writes: > "ozan s. yigit" wrote: > > i'm curious if this one > > is considered non-conforming too. > > Yes, because the source and destination strings overlap. but that is not the problem. a non-overlapping version blows up a combination of gcc/cpp and glibc the same way. oz --- #include #include int main(int argc, char **argv) { char b1[15]; char b2[15]; char b3[15]; char b4[15]; char b5[15]; strcpy(b5, strcpy(b4, strcpy(b3, strcpy(b2, strcpy(b1, "hello boyd!"))))); printf("%s\n", b5); return 0;