☰
Debian Codegraph
@
3.0.0-7
/
/
src
/
proxy
/
data.c
☽
☼
src/proxy/data.c
code
plain
raw
Apache-2.0
2004-2011 Members of the EGEE Collaboration; 2010-2013 European Middleware Initiative
debian/copyright
1
/* XXX from common/data.cc */
2
3
#include <ctype.h>
4
5
int hex2num(char c)
6
{
7
if (isdigit(c))
8
return c - '0';
9
else {
10
char d = tolower(c);
11
12
if (d >= 'a' && d <= 'f')
13
return d - 'a' + 10;
14
15
return 0;
16
}
17
}