Skip to content

Commit 3b77b17

Browse files
committed
reference/cctype/tolower.md: Created sample implementation
1 parent 365685e commit 3b77b17

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

reference/cctype/tolower.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,14 @@ tolower('1') = 1
4242
tolower('.') = .
4343
tolower('$') = $
4444
```
45+
46+
## 実装例
47+
```cpp
48+
int tolower(int ch) {
49+
if (isupper(ch)) {
50+
ch ^= 32
51+
}
52+
return ch;
53+
}
54+
```
55+

0 commit comments

Comments
 (0)