Path: utzoo!yunexus!geac!syntron!jtsv16!uunet!lll-winken!lll-tis!ames!elroy!cit-vax!cit-vlsi!glennl From: glennl@cit-vlsi.Caltech.Edu (Glenn M. Lewis) Newsgroups: comp.sys.amiga Subject: Re: Don't forget the comma Message-ID: <8400@cit-vax.Caltech.Edu> Date: 24 Oct 88 15:33:58 GMT Article-I.D.: cit-vax.8400 References: <8810192323.AA21251@jade.berkeley.edu> Sender: news@cit-vax.Caltech.Edu Reply-To: glennl@cit-vlsi.UUCP (Glenn M. Lewis) Organization: California Institute of Technology Lines: 21 In article <8810192323.AA21251@jade.berkeley.edu> writes: |[] |Has anyone else run into this "feature" of Manx C? |It happens with both 3.4b and 3.6a (at least, the ones I have). |Minimal case - |char *array[] = { "s1" "s2" }; |... What it does do is concat "s1" and "s2" into "s1s2" and put just the |one pointer into array... |Just thought I'd see if anyone else knew about this, and maybe save someone |a few hours of head-beating with a debugger... | John McCranie FSJTM@ALASKA On page cc.20 (in the Compiler section) of the Manx Aztec C manual, under section 3.7, it says: The compiler will merge adjacent character strings. For example, printf("file=" __FILE__ " line = %d func= " __FUNC__ , __LINE__ ); -- Glenn Lewis glennl@vlsi.caltech.edu