Canul Podkopayeva wrote: > Why and how can I fix this code that segfault? > /* it sigfaults at this line */ > ga->dog.answer = "a string!"; Not surprising, as ga isn't guaranteed to point to writable memory. You have to initialise it first. -- Glynn Clements <[EMAIL PROTECTED]>
- struct and pointer Canul Podkopayeva
- Re: struct and pointer ÀÓ Á¾±Õ
- Glynn Clements