update for HEAD-2003091401
[reactos.git] / lib / msvcrt / stdio / puts.c
1 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
2 #include <windows.h>
3 #include <msvcrt/stdio.h>
4 #include <msvcrt/io.h>
5 #include <msvcrt/string.h>
6
7 #undef putchar
8 #undef putwchar
9
10
11 /*
12  * @implemented
13  */
14 int puts(const char *s)
15 {
16     int c;
17
18     while ((c = *s++)) {
19         putchar(c);
20     }
21     return putchar('\n');
22 }
23
24 /*
25  * @implemented
26  */
27 int _putws(const wchar_t *s)
28 {
29     wint_t c;
30     
31     while ((c = *s++)) {
32         putwchar(c);
33     }
34     return putwchar(L'\n');
35 }