Sender: nate AT cartsys DOT com Message-ID: <3775E314.C4FA1732@cartsys.com> Date: Sun, 27 Jun 1999 01:38:44 -0700 From: Nate Eldredge X-Mailer: Mozilla 4.08 [en] (X11; I; Linux 2.2.10 i586) MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: DJGPP specific strcpy() error References: <7l3h4p$7vt$1 AT nnrp1 DOT deja DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com I1269U wrote: > > I wrote some code the other day at school that works fine for all three > different compilers that I use (MS Quick C, cc on VAX/VMS, and gcc on > UNIX). Essentially, I defined a structure with four strings, and a > pointer to a similar structure (ala linked list). Now, after gathering > the information to put into the four strings, I'd try to use strcpy() > to transfer the strings out of the local variables and into the > structure members. The code that I used looks something like this: [snipped-- it seems DJ thinks my quoted ratio is too high otherwise] `testing' doesn't point at anything! That's why your program crashes. I guess you just got "lucky" to have it work on the other systems. -- Nate Eldredge nate AT cartsys DOT com