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

Method SetTimeStampFormat

UTCP/src/uh_ctrl.cpp:1430–1445  ·  view source on GitHub ↗

SetTimeStampFormat Sets the format for stamped lines. See the information on the strftime function for for full information on format strings Params formatString - format mask for the time stamp Return 0 - (UH_SUCCESS) 1 - (UH_ERROR) ***********************************************/

Source from the content-addressed store, hash-verified

1428 1 - (UH_ERROR)
1429***********************************************/
1430int CUH_Control::SetTimeStampFormat(LPCTSTR formatString){
1431
1432 int len = (int)_tcslen(formatString);
1433
1434 if(len <1){
1435 return UH_ERROR;
1436 }
1437
1438 if(m_DateFormatString != NULL)
1439 delete[] m_DateFormatString;
1440
1441 m_DateFormatString = new _TCHAR[len+1];
1442 _tcscpy(m_DateFormatString,formatString);
1443
1444 return UH_SUCCESS;
1445}
1446/**********************************************
1447GetTimeStampFormat
1448 Gets the format for stamped lines. See the

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected