NO

Author Topic: IDEClearOutput and SelCStrLen  (Read 4012 times)

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2115
IDEClearOutput and SelCStrLen
« on: March 09, 2018, 02:32:27 PM »
IDEClearOutput Add-In just clear poide Output window.

SelCStrLen Add-In display length of selected text to Output in two ways, first in chars, second in bytes.
Useful with const char string with escape chars, length counted using function
Code: [Select]
int CountCChars(TCHAR *pStr)
{
int len = 0;
while (*pStr) {
if (*pStr == '\"' || *pStr == '\n') {
pStr++;
continue;
}
if (*pStr == '\\')
pStr++;
len++;
pStr++;
}
return len;
}
May the source be with you