test
This commit is contained in:
@@ -278,6 +278,7 @@ void hex2ascii(const string& in, string& out)
|
|||||||
p++;
|
p++;
|
||||||
if (p == in.end()) break; // incomplete last digit - should report error
|
if (p == in.end()) break; // incomplete last digit - should report error
|
||||||
c = (c << 4) + hexval(*p); // + takes precedence over <<
|
c = (c << 4) + hexval(*p); // + takes precedence over <<
|
||||||
|
printf("char: %d\n",c);
|
||||||
out.push_back(c);
|
out.push_back(c);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user