X-Git-Url: http://git.jankratochvil.net/?a=blobdiff_plain;f=lib%2Fcrtdll%2Fstdio%2Fputc.c;h=8cc187b182ea21d92482683234fe6350fd6d049f;hb=e3ed2d773259cc445c7ff8181ebd934931365328;hp=0764d07f98e0635397f17a1276338a4580fe0367;hpb=d378c68f5a9bb25c9e671dacd482d2e25d211df3;p=reactos.git diff --git a/lib/crtdll/stdio/putc.c b/lib/crtdll/stdio/putc.c index 0764d07..8cc187b 100644 --- a/lib/crtdll/stdio/putc.c +++ b/lib/crtdll/stdio/putc.c @@ -1,18 +1,17 @@ /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ #include -#include -#include -#include -#include +#include +#include +#include +#include // putc can be a macro #undef putc +#undef putwc -int putc(int c, FILE *fp) +int putc(int c, FILE* fp) { - -// valid stream macro should check that fp -// is dword aligned +// valid stream macro should check that fp is dword aligned if (!__validfp (fp)) { __set_errno(EINVAL); return -1; @@ -36,7 +35,9 @@ int putc(int c, FILE *fp) return EOF; } -wint_t putwc(wchar_t c, FILE *fp) +//wint_t putwc(wint_t c, FILE* fp) +//int putwc(wchar_t c, FILE* fp) +int putwc(wint_t c, FILE* fp) { // might check on multi bytes if text mode