Explorar o código

LibC: Implement getwchar()

Ali Mohammad Pur %!s(int64=3) %!d(string=hai) anos
pai
achega
a4e8a09188
Modificáronse 2 ficheiros con 6 adicións e 0 borrados
  1. 1 0
      Userland/Libraries/LibC/wchar.h
  2. 5 0
      Userland/Libraries/LibC/wstdio.cpp

+ 1 - 0
Userland/Libraries/LibC/wchar.h

@@ -73,5 +73,6 @@ size_t wcsspn(const wchar_t* wcs, const wchar_t* accept);
 
 wint_t fgetwc(FILE* stream);
 wint_t getwc(FILE* stream);
+wint_t getwchar(void);
 
 __END_DECLS

+ 5 - 0
Userland/Libraries/LibC/wstdio.cpp

@@ -56,4 +56,9 @@ wint_t getwc(FILE* stream)
 {
     return fgetwc(stream);
 }
+
+wint_t getwchar()
+{
+    return getwc(stdin);
+}
 }