repo.or.cz
/
linux-btrfs-devel.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
nfsd4: typo logical vs bitwise negate for want_mask
[linux-btrfs-devel.git]
/
arch
/
x86
/
boot
/
ctype.h
blob
25e13403193cc4d0231b8ce97b49ef4fa6f4bb75
1
#ifndef BOOT_ISDIGIT_H
2
3
#define BOOT_ISDIGIT_H
4
5
static
inline
int
isdigit
(
int
ch
)
6
{
7
return
(
ch
>=
'0'
) && (
ch
<=
'9'
);
8
}
9
10
static
inline
int
isxdigit
(
int
ch
)
11
{
12
if
(
isdigit
(
ch
))
13
return true
;
14
15
if
((
ch
>=
'a'
) && (
ch
<=
'f'
))
16
return true
;
17
18
return
(
ch
>=
'A'
) && (
ch
<=
'F'
);
19
}
20
21
#endif