| 133 | } |
| 134 | |
| 135 | void 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 */ |
| 146 | unsigned char *uncompress_data(unsigned char *inbuf,int *buflen) |
no outgoing calls
no test coverage detected