Right. I don't know how the code you posted here behaves and can only guess here. My guess is, that the 32 bit for the pointer my_str are of course allocated on the stack and the memory required for the string itself is allocated on the heap as if you used "str_create(" ");".


Always learn from history, to be sure you make the same mistakes again...