MCPcopy Create free account
hub / github.com/MaxBelkov/visualsyslog / MyNewStr

Function MyNewStr

sourcecommon/utils.cpp:854–861  ·  view source on GitHub ↗

--------------------------------------------------------------------------- void ASSERT(bool b) { if( !b ) ::MessageBox(NULL, "Error !", "ASSERT(...)", MB_ICONERROR); } */ ---------------------------------------------------------------

Source from the content-addressed store, hash-verified

852*/
853//---------------------------------------------------------------
854char * MyNewStr(char * s, int size)
855{
856 if( !s ) return NULL;
857 if( !size ) size = strlen(s)+1;
858 char * p = new char[size];
859 lstrcpyn(p, s, size);
860 return p;
861}
862//---------------------------------------------------------------------------
863// CmdLine - ������ ��������� ������
864bool RunProg(char * CmdLine, WORD wShowWindow, bool bWait,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected