maint: remove unnecessary inttostr usage in printf
[coreutils.git] / src / octhexdigits.h
blobfff6866b5e11c66547e36bdeb1f2f874fbdbd1f1
1 #define isoct(c) ('0' <= (c) && (c) <= '7')
2 #define fromoct(c) ((c) - '0')
3 #define fromhex(c) ('a' <= (c) && (c) <= 'f' ? (c) - 'a' + 10 : \
4 'A' <= (c) && (c) <= 'F' ? (c) - 'A' + 10 : (c) - '0')