/*
- * $Id: utils.c 6808 2008-12-11 00:00:36Z dothebart $
- *
* de/encoding stuff. hopefully mostly to be depricated in favour of subst.c + strbuf
*/
hex[1] = buf[a + 2];
hex[2] = 0;
b = 0;
- sscanf(hex, "%02x", &b);
+ b = decode_hex(hex);
buf[a] = (char) b;
len = buflen - a - 2;
if (len > 0)
char outbuf[SIZ];
jsesc(outbuf, SIZ, strbuf);
- wprintf("%s", outbuf);
+ wc_printf("%s", outbuf);
}
/*