Patrick Georgi has submitted this change and it was merged. ( https://review.coreboot.org/c/coreboot/+/29479 )
Change subject: string.h: Add isprint() ......................................................................
string.h: Add isprint()
Change-Id: If179687f0a15cf5b16723ad18d8eb86a2d5fa48d Signed-off-by: Nico Huber nico.huber@secunet.com Reviewed-on: https://review.coreboot.org/c/29479 Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: Angel Pons th3fanbus@gmail.com --- M src/include/string.h 1 file changed, 5 insertions(+), 0 deletions(-)
Approvals: build bot (Jenkins): Verified Angel Pons: Looks good to me, approved
diff --git a/src/include/string.h b/src/include/string.h index fc96393..2f6b5f1 100644 --- a/src/include/string.h +++ b/src/include/string.h @@ -156,6 +156,11 @@ } }
+static inline int isprint(int c) +{ + return c >= ' ' && c <= '~'; +} + static inline int isdigit(int c) { return (c >= '0' && c <= '9');