Browse Source

ctype: Implement _tolower, _toupper

Tibor Nagy 6 years ago
parent
commit
d38a1d0da3
2 changed files with 8 additions and 1 deletions
  1. 7 0
      include/bits/ctype.h
  2. 1 1
      src/header/ctype/cbindgen.toml

+ 7 - 0
include/bits/ctype.h

@@ -0,0 +1,7 @@
+#ifndef _BITS_CTYPE_H
+#define _BITS_CTYPE_H
+
+#define _tolower(c) tolower(c)
+#define _toupper(c) toupper(c)
+
+#endif /* _BITS_CTYPE_H */

+ 1 - 1
src/header/ctype/cbindgen.toml

@@ -1,4 +1,4 @@
-sys_includes = []
+sys_includes = ["bits/ctype.h"]
 include_guard = "_CTYPE_H"
 language = "C"
 style = "Tag"