From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: char[] to char* Date: Thu, 13 Aug 1998 18:16:52 -0400 Organization: Two pounds of chaos and a pinch of salt. Lines: 23 Message-ID: <35D365D4.CB755519@cs.net> References: <199808121512 DOT LAA06994 AT mail DOT cgocable DOT net> <35D25A18 DOT C943F95F AT unb DOT ca> <35d26e61 DOT 14045785 AT news DOT rapidnet DOT net> <35D2F36B DOT D2DB0EC2 AT unb DOT ca> NNTP-Posting-Host: ppp131.cs.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Endlisnis wrote: > > richard AT stardate DOT bc DOT ca wrote: > > > >char H[9];char* b; > > >b = &H[4]; > > or > > b = H + 4; > > OK, but I am used to Borland, and that won't work there, but it does > work in DJGPP. Huh? Which version of Borland is that? Pointer arithmetic with array labels is defined in ANSI C. For a commercial standard compiler to not support it would be... strange. -- --------------------------------------------------------------------- | John M. Aldrich, aka Fighteer I | mailto:fighteer AT cs DOT net | | "Starting flamewars since 1993" | http://www.cs.net/fighteer/ | | *** NOTICE *** This .signature | ICQ UIN#: 7406319 | | is generated randomly. If you don't like it, sue my computer. | ---------------------------------------------------------------------