[SDK] One step further towards ReactOS source code tree restructure: the sdk folder...
[reactos.git] / reactos / lib / sdk / crt / string / wcstombs_nt.c
diff --git a/reactos/lib/sdk/crt/string/wcstombs_nt.c b/reactos/lib/sdk/crt/string/wcstombs_nt.c
deleted file mode 100644 (file)
index 468955b..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-#include <ndk/umtypes.h>
-#include <ndk/rtlfuncs.h>
-
-/*
- * @implemented
- */
-int wctomb (char *mbchar, wchar_t wchar)
-{
-       NTSTATUS Status;
-       ULONG Size;
-
-       if (mbchar == NULL)
-               return 0;
-
-       Status = RtlUnicodeToMultiByteN (mbchar,
-                                        1,
-                                        &Size,
-                                        &wchar,
-                                        sizeof(WCHAR));
-       if (!NT_SUCCESS(Status))
-               return -1;
-
-       return (int)Size;
-}
-
-/*
- * @implemented
- */
-size_t wcstombs (char *mbstr, const wchar_t *wcstr, size_t count)
-{
-       NTSTATUS Status;
-       ULONG Size;
-       ULONG Length;
-
-       Length = (ULONG)wcslen (wcstr);
-
-       if (mbstr == NULL)
-       {
-               RtlUnicodeToMultiByteSize (&Size,
-                                          (wchar_t*)((size_t)wcstr),
-                                          Length * sizeof(WCHAR));
-
-               return (size_t)(Size / sizeof(char));
-       }
-
-       Status = RtlUnicodeToMultiByteN (mbstr,
-                                        (ULONG)count,
-                                        &Size,
-                                        (wchar_t*)((size_t)wcstr),
-                                        Length * sizeof(WCHAR));
-       if (!NT_SUCCESS(Status))
-               return -1;
-
-       return (size_t)(Size / sizeof(char));
-}
-
-/* EOF */