You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2018/07/13 09:59:02 UTC

[GitHub] mkiiskila closed pull request #1270: Fix missing isgraph() from baselibc

mkiiskila closed pull request #1270: Fix missing isgraph() from baselibc
URL: https://github.com/apache/mynewt-core/pull/1270
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/libc/baselibc/include/ctype.h b/libc/baselibc/include/ctype.h
index 7b7b24b7f6..af8ae69f18 100644
--- a/libc/baselibc/include/ctype.h
+++ b/libc/baselibc/include/ctype.h
@@ -77,6 +77,11 @@ __extern_inline int isprint(int __c)
 	return (__c >= 0x20 && __c <= 0x7e);
 }
 
+__extern_inline int isgraph(int __c)
+{
+	return (__c > 0x20 && __c < 0x7f);
+}
+
 __extern_inline int toupper(int __c)
 {
 	return islower(__c) ? (__c & ~32) : __c;


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services