Skip to content

Commit 3527568

Browse files
committed
reference/cctype/isspace.md: Created sample implementation
1 parent 3ced67c commit 3527568

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

reference/cctype/isspace.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,12 @@ isspace(' ') = 8192
5050
isspace('\n') = 8192
5151
isspace('0x0f') = 0
5252
```
53+
54+
## 実装例
55+
```cpp
56+
int isspace(int ch) {
57+
return ch == ' ' || ch == '\t' || ch == '\r' || ch == '\n' || ch == '\v' || ch == '\f';
58+
}
59+
```
60+
61+

0 commit comments

Comments
 (0)