mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 00:02:28 +00:00
Make minor improvements
This commit is contained in:
parent
04caf6f9ad
commit
95b142e4e5
95 changed files with 3818 additions and 2760 deletions
|
@ -19,6 +19,9 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/str/str.h"
|
||||
|
||||
/**
|
||||
* Returns nonzero if c ∈ !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
|
||||
*/
|
||||
int ispunct(int c) {
|
||||
return (0x21 <= c && c <= 0x7E) && !('0' <= c && c <= '9') &&
|
||||
!('A' <= c && c <= 'Z') && !('a' <= c && c <= 'z');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue