Further to my last post on stack check reporting possibly going wrong I have another one to add:- printf("malloc free space = %xl\n",(unsigned long)malloc_free_space()); seems to give unreal numbers.. Anyone else get this, or am I really messed up?! Thanks to all. Bob Wisdom