We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 811c2b8 commit 73d6f90Copy full SHA for 73d6f90
common/src/util/hex_dump.c
@@ -9,6 +9,16 @@
9
#include <ctype.h>
10
#endif /* _CMOC_VERSION_ */
11
12
+
13
+#ifdef _CMOC_VERSION_
14
+int isprint(int c)
15
+{
16
+ // Check if c falls within the ASCII range for printable characters (0x20 to 0x7E)
17
+ // This range includes space (0x20) up to tilde (0x7E).
18
+ return (c >= 0x20 && c <= 0x7E);
19
+}
20
+#endif
21
22
void hd(void* data, unsigned int size) {
23
unsigned int i = 0;
24
unsigned int j = 0;
0 commit comments