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

Function unquotify

tools/fshtool.c:120–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120void unquotify(char *src,int len,unsigned char *dest)
121{
122 while (len--) {
123 if (*src!='%')
124 *(dest++)=*(src++);
125 else {
126 src++;
127 if (*src<='9') *dest=(*src-'0'); else *dest=10+((*src-'A')&15);
128 *dest=(*dest<<4); src++;
129 if (*src<='9') *dest+=(*src-'0'); else *dest+=10+((*src-'A')&15);
130 src++; dest++;
131 }
132 }
133}
134
135void unhexify(char *src,int len,unsigned char *dest)
136{

Callers 1

bmp_to_fshFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected