MCPcopy Create free account
hub / github.com/ashkulz/NppFTP / SetLogName

Method SetLogName

UTCP/src/uh_ctrl.cpp:933–951  ·  view source on GitHub ↗

SetLogName Sets the filename of the log file. If date stamping is enabled then then date stamp will be instered just be for the extenion in the filename Params logName - file name (plus optional path) Return 0 - (UH_SUCCESS) 1 - (UH_ERROR) ***********************************/

Source from the content-addressed store, hash-verified

931 1 - (UH_ERROR)
932***********************************/
933int CUH_Control::SetLogName(LPCTSTR logName){
934
935 int rt = UH_SUCCESS;
936
937 int len = (int)_tcslen(logName);
938
939 if(len <1 || len > 255){
940 rt = UH_ERROR;
941 }
942 else{
943 if(m_logName != NULL)
944 delete[] m_logName;
945
946 m_logName = new _TCHAR[len+1];
947 _tcscpy(m_logName,logName);
948 }
949
950 return rt;
951}
952/**********************************
953SetLogName
954 Sets the filename of the log file.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected