MCPcopy Create free account
hub / github.com/OpenNFS/OpenNFS / unhexify

Function unhexify

tools/fshtool.c:135–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135void unhexify(char *src,int len,unsigned char *dest)
136{
137 while (len--) {
138 if (*src<='9') *dest=(*src-'0'); else *dest=10+((*src-'A')&15);
139 *dest=(*dest<<4); src++;
140 if (*src<='9') *dest+=(*src-'0'); else *dest+=10+((*src-'A')&15);
141 src++; dest++;
142 }
143}
144
145/* uncompressing a QFS file */
146unsigned char *uncompress_data(unsigned char *inbuf,int *buflen)

Callers 2

alpha8_fix_locpalFunction · 0.85
bmp_to_fshFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected