The code snippets
for (int i = 0; i < *count; ++i) { str[i] = 0; }
if (*count > 0) { long idx = 0; do { str->__data[idx] = 0; idx += 1; } while (idx <= *count); }