added streq() macro and defined default BUF_LEN