Skip to content

Commit 3ced67c

Browse files
committed
reference/cctype/ispunct.md: Created sample implementation
1 parent 0b90e93 commit 3ced67c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

reference/cctype/ispunct.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,10 @@ ispunct(' ') = 0
5050
ispunct('\n') = 0
5151
ispunct('0x0f') = 0
5252
```
53+
54+
## 実装例
55+
```cpp
56+
int ispunct(int ch) {
57+
return isprint(ch) && !isalnum(ch);
58+
}
59+
```

0 commit comments

Comments
 (0)