EHLO Kurt!
>> main()
>> {
>> struct a a1;
>> struct b b1;
>> .
>> .
>> b1.u = "hello";
> Boom! You've just caused a SIGSEV because you're assigning memory
> that you haven't allocated properly. b1.u could point anywhere.
> malloc and family are your friends.
b1 is not a pointer, and referencing to it's internal object u is
valid. = "hello" only changes the value of the pointer u.
--
____\___\___
(_(\|,|_|,|_ Gassho! [http://dione.ids.pl/~pborys][mr MUA home]
| | |. [teksty o zen,programowaniu,moje sf,xfaq_pl, inne]