cprintf("%ld\n", vbuf.v_roomgen);
cprintf("%ld\n", vbuf.v_usernum);
- if (strlen(vbuf.v_seen) > 0) {
+ if (!IsEmptyStr(vbuf.v_seen)) {
cprintf("%s\n", vbuf.v_seen);
}
else {
client_getln(buf, sizeof buf);
vbuf.v_lastseen = atol(buf);
- for (i=0; i<strlen(buf); ++i) if (!isdigit(buf[i])) is_textual_seen = 1;
+ for (i=0; !IsEmptyStr(&buf[i]); ++i) if (!isdigit(buf[i])) is_textual_seen = 1;
if (is_textual_seen) strcpy(vbuf.v_seen, buf);
client_getln(vbuf.v_answered, sizeof vbuf.v_answered);