Ignore:
Timestamp:
Aug 18, 1999, 11:45:14 PM (26 years ago)
Author:
phaller
Message:

Add: lots of new stubs, crt functions and string functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/NTDLL/rtlstr.cpp

    r553 r557  
    1 /* $Id: rtlstr.cpp,v 1.6 1999-08-18 18:44:27 phaller Exp $ */
     1/* $Id: rtlstr.cpp,v 1.7 1999-08-18 21:45:14 phaller Exp $ */
    22
    33/*
     
    338338
    339339  dprintf(("NTDLL: RtlUnicodeToOemN(%08xh,%08xh,%08xh,%08xh,%08xh)\n",
     340           oemstr,
     341           oemlen,
     342           reslen,
     343           unistr,
     344           unilen));
     345
     346  len = oemlen;
     347
     348  if (unilen/2 < len)
     349    len = unilen/2;
     350
     351  x=(LPSTR)HeapAlloc(GetProcessHeap(),
     352                     HEAP_ZERO_MEMORY,
     353                     len+1);
     354
     355  UnicodeToAsciiN(unistr,
     356                  x,
     357                  len+1);
     358
     359  memcpy(oemstr,
     360         x,
     361         len);
     362
     363  if (reslen)
     364    *reslen = len;
     365
     366  return 0;
     367}
     368
     369
     370/**************************************************************************
     371 *                 RtlUnicodeToMultiByteN            [NTDLL.513]
     372 */
     373DWORD WINAPI RtlUnicodeToMultiByteN(LPSTR   oemstr,
     374                                    DWORD   oemlen,
     375                                    LPDWORD reslen,
     376                                    LPWSTR  unistr,
     377                                    DWORD   unilen)
     378{
     379  DWORD len;
     380  LPSTR x;
     381
     382  dprintf(("NTDLL: RtlUnicodeToMultiByteN(%08xh,%08xh,%08xh,%08xh,%08xh)\n",
    340383           oemstr,
    341384           oemlen,
Note: See TracChangeset for help on using the changeset viewer.