Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
ispunct.c
Go to the documentation of this file.
1
// Pulled from musl libc, locale support removed
2
3
#include <
ctype.h
>
4
5
int
ispunct
(
int
c)
6
{
7
return
isgraph
(c) && !
isalnum
(c);
8
}
isgraph
int isgraph(int ch)
Checks if the given character has a graphical representation.
Definition:
isgraph.c:5
ctype.h
isalnum
int isalnum(int ch)
Checks if the given character is an alphanumeric character.
Definition:
isalnum.c:5
ispunct
int ispunct(int c)
Checks if the given character is a punctuation character.
Definition:
ispunct.c:5
src
ctype
ispunct.c
Generated by
1.8.15