Skip to content

Commit 82f1655

Browse files
authored
Merge pull request #41 from Zondax/feat-isprintable
2 parents 107e25e + e04cee2 commit 82f1655

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

include/zxformat.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ extern "C" {
2222
#include "zxmacros.h"
2323
#include "zxerror.h"
2424

25+
#define IS_PRINTABLE(c) ((c >= 0x20 && c <= 0x7e) || (c >= 0x80 && c <= 0xFF))
26+
2527
#define NUM_TO_STR(TYPE) __Z_INLINE const char * TYPE##_to_str(char *data, int dataLen, TYPE##_t number) { \
2628
if (dataLen < 2) return "Buffer too small"; \
2729
MEMZERO(data, dataLen); \

include/zxversion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717

1818
#define ZXLIB_MAJOR 14
1919
#define ZXLIB_MINOR 1
20-
#define ZXLIB_PATCH 4
20+
#define ZXLIB_PATCH 5

0 commit comments

Comments
 (0)