Linux Audio

Check our new training course

In-person Linux kernel drivers training

Jun 16-20, 2025
Register
Loading...
v6.2
 1/* SPDX-License-Identifier: GPL-2.0 */
 2#ifndef BOOT_CTYPE_H
 3#define BOOT_CTYPE_H
 4
 5static inline int isdigit(int ch)
 6{
 7	return (ch >= '0') && (ch <= '9');
 8}
 9
10static 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
v6.8
 1/* SPDX-License-Identifier: GPL-2.0 */
 2#ifndef BOOT_CTYPE_H
 3#define BOOT_CTYPE_H
 4
 5static inline int isdigit(int ch)
 6{
 7	return (ch >= '0') && (ch <= '9');
 8}
 9
10static 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