выделение памяти Си - слово static

http://forum.pellesc.de/index.php?action...

-----------------
I've studied your example. big thanks -
as i see it shows memory rewriting , but I have pare if questions:
1) to escape situation of "Undefined Behaviour" - should i allocate all memory

I've studied your example. big thanks -
as i see it shows memory rewriting , but I have question:
1) to escape situation of "Undefined Behaviour" - should i allocate memory pointer witch I pass into func , or i should only define pointer variable in that program area where I'll use memory it point?