1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:37:34 +00:00

Add ispunct() to LibC + some minor cleanups.

This commit is contained in:
Andreas Kling 2018-11-11 00:44:04 +01:00
parent 3b2f172d48
commit 7cc4caee4f
5 changed files with 16 additions and 2 deletions

View file

@ -2,6 +2,8 @@
#include <sys/cdefs.h>
__BEGIN_DECLS
ALWAYS_INLINE int isascii(int ch)
{
return (ch & ~0x7f) == 0;
@ -40,3 +42,7 @@ ALWAYS_INLINE int isdigit(int c)
{
return c >= '0' && c <= '9';
}
int ispunct(int c);
__END_DECLS