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

Method tcsncpy

UTCP/src/UT_StrOp.cpp:320–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318#endif
319}
320void CUT_Str::tcsncpy(TCHAR * dest, size_t dstSize, const TCHAR * src, size_t maxCount)
321{
322#if _MSC_VER >= 1400
323 _tcsncpy_s(dest, dstSize, src, maxCount);
324#else
325 UNREFERENCED_PARAMETER(dstSize);
326#ifdef _UNICODE
327 ::wcsncpy(dest,src, maxCount);
328#else
329 ::strncpy(dest,src, maxCount);
330#endif
331#endif
332}
333
334TCHAR * CUT_Str::tgetenv(const TCHAR *varname)
335{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected