Computes the length of the string str.
str
int strlenBuffer(CString str) { int len = 0; while (str[len] != 0) { len++; } return len; }