提交 b6f99412 编写于 作者: R Rich Felker

implement dn_skipname (legacy resolver function)

上级 baec93cb
#include <resolv.h>
int dn_skipname(const unsigned char *s, const unsigned char *end)
{
const unsigned char *p;
for (p=s; p<end; p++)
if (!*p) return p-s+1;
else if (*p>=192)
if (p+1<end) return p-s+2;
else break;
return -1;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册