MCPcopy Create free account
hub / github.com/cpputest/cpputest / copyToBuffer

Method copyToBuffer

src/CppUTest/SimpleString.cpp:564–572  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

562
563
564void SimpleString::copyToBuffer(char* bufferToCopy, size_t bufferSize) const
565{
566 if (bufferToCopy == NULLPTR || bufferSize == 0) return;
567
568 size_t sizeToCopy = (bufferSize-1 < size()) ? (bufferSize-1) : size();
569
570 StrNCpy(bufferToCopy, getBuffer(), sizeToCopy);
571 bufferToCopy[sizeToCopy] = '\0';
572}
573
574bool SimpleString::isDigit(char ch)
575{

Callers 3

addMarkerToStringFunction · 0.80
TESTFunction · 0.80

Calls

no outgoing calls

Tested by 3

addMarkerToStringFunction · 0.64
TESTFunction · 0.64