projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
remove useless __yield alias for sched_yield
[oweals/musl.git]
/
src
/
network
/
dn_skipname.c
1
#include <resolv.h>
2
3
int dn_skipname(const unsigned char *s, const unsigned char *end)
4
{
5
const unsigned char *p;
6
for (p=s; p<end; p++)
7
if (!*p) return p-s+1;
8
else if (*p>=192)
9
if (p+1<end) return p-s+2;
10
else break;
11
return -1;
12
}