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

Function quotify

tools/fshtool.c:95–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95void quotify(unsigned char *src,int len,char *dest)
96{
97 while (len--) {
98 if ((*src>32)&&(*src<=126)&&(*src!='%'))
99 *(dest++)=*(src++);
100 else {
101 *(dest++)='%';
102 *(dest++)="0123456789ABCDEF"[(*src)>>4];
103 *(dest++)="0123456789ABCDEF"[(*src)&15];
104 src++;
105 }
106 }
107 *dest=0;
108}
109
110void hexify(unsigned char *src,int len,char *dest)
111{

Callers 1

fsh_to_bmpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected