repo.or.cz
/
coreutils.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
maint: remove unnecessary inttostr usage in printf
[coreutils.git]
/
src
/
octhexdigits.h
blob
fff6866b5e11c66547e36bdeb1f2f874fbdbd1f1
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'
)