if (st1[cnt + 1] == 0) return 0; if (cnt == maxbytes - 1) return -2;  return -1;
int compstr(const char st1[], char st2[], int maxbytes){    int cnt;    for (cnt = 0; st1[cnt] == st2[cnt] && cnt + 1 < maxbytes && st1[cnt + 1] != 0; cnt++);    if (st1[cnt] != st2[cnt])	return -1;    if (st1[cnt + 1] == 0)	return 0;    if (cnt == maxbytes - 1)	return -2;    return -1;}