LAPTOP-SNT8I5JK\Boounion
2025-05-10 1e8e3473cb124f9e51dfc1ca35e5cb13b1668bdc
SourceCode/Bond/Servo/ToolUnits.cpp
@@ -316,4 +316,17 @@
   strOut = ss.str();
   return strOut;
}
void CToolUnits::convertString(const char* pszBuffer, int size, std::string& strOut)
{
   strOut.clear();
   int nLength = 0;
   for (int i = 0; i < size; i++) {
      if (pszBuffer[i] == '\0') break;
      nLength++;
   }
   if (nLength > 0) {
      strOut = std::string(pszBuffer, nLength);
   }
}