c/string/byte/isprint

Checks if the given character can be printed, i.e. it is either a number, an uppercase letter , a lowercase letter , a punctuation character, or space, or any character classified as printable by the current C locale.

The behavior is undefined if the value of is not representable as  and is not equal to.

Return value
Non-zero value if the character can be printed, zero otherwise.