Nico Huber has uploaded this change for review. ( https://review.coreboot.org/29479
Change subject: string.h: Add isprint() ......................................................................
string.h: Add isprint()
Change-Id: If179687f0a15cf5b16723ad18d8eb86a2d5fa48d Signed-off-by: Nico Huber nico.huber@secunet.com --- M src/include/string.h 1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/79/29479/1
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');