[coreboot-gerrit] Change in coreboot[master]: string.h: Add isprint()
Nico Huber (Code Review)
gerrit at coreboot.org
Mon Nov 5 18:35:54 CET 2018
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 at 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');
--
To view, visit https://review.coreboot.org/29479
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: If179687f0a15cf5b16723ad18d8eb86a2d5fa48d
Gerrit-Change-Number: 29479
Gerrit-PatchSet: 1
Gerrit-Owner: Nico Huber <nico.h at gmx.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20181105/c351146b/attachment-0001.html>
More information about the coreboot-gerrit
mailing list