Ignore:
Timestamp:
Aug 19, 1999, 4:10:16 AM (26 years ago)
Author:
phaller
Message:

Add: lstrncmpA, lstrncmpW added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/heapstring.cpp

    r566 r567  
    1818#include <winnls.h>
    1919#include <unicode.h>
     20#include <wcstr.h>
    2021#include "heap.h"
    2122#include <heapstring.h>
     
    191192 *****************************************************************************/
    192193
     194int WIN32API lstrncmpA(LPCSTR arg1, LPCSTR  arg2, int l)
     195{
     196  dprintf(("KERNEL32: OS2lstrncmpA(%s,%s,%d)\n",
     197           arg1,
     198           arg2,
     199           l));
     200
     201  return strncmp(arg1, arg2, l);
     202}
     203
     204
     205
     206/*****************************************************************************
     207 * Name      :
     208 * Purpose   :
     209 * Parameters:
     210 * Variables :
     211 * Result    :
     212 * Remark    :
     213 * Status    :
     214 *
     215 * Author    : Patrick Haller [Thu, 1999/08/05 20:46]
     216 *****************************************************************************/
     217
    193218int WIN32API lstrcmpW(LPCWSTR arg1, LPCWSTR arg2)
    194219{
     
    198223}
    199224
     225
     226/*****************************************************************************
     227 * Name      :
     228 * Purpose   :
     229 * Parameters:
     230 * Variables :
     231 * Result    :
     232 * Remark    :
     233 * Status    :
     234 *
     235 * Author    : Patrick Haller [Thu, 1999/08/05 20:46]
     236 *****************************************************************************/
     237
     238int WIN32API lstrncmpW(LPCWSTR arg1, LPCWSTR  arg2, int l)
     239{
     240  dprintf(("KERNEL32: OS2lstrncmpW(%08xh,%08xh,%d)\n",
     241           arg1,
     242           arg2,
     243           l));
     244
     245  return wcsncmp((wchar_t*)arg1,
     246                 (wchar_t*)arg2,
     247                 l);
     248}
    200249
    201250/*****************************************************************************
Note: See TracChangeset for help on using the changeset viewer.