This code is _STILL_ very much wrong - because you are modifying a constant variable, and who knows what happens if you do that. On my Windows system, compiling using gcc, I get a immediate crash.Code:for(iLenCont=iLenMsg; iLenCont<40; iLenCont++) strcat (pMensagem, ".");
If your compiler supports it, you could addto your header - but your compiler may not accept that.Code:const char *pMensagem
--
Mats