Mail Archives: djgpp/1999/06/27/04:37:58
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
- Raw text -