Ignore:
Timestamp:
Jun 25, 1999, 3:59:02 PM (26 years ago)
Author:
phaller
Message:

Add: new runtime functions in NTDLL

File:
1 edited

Legend:

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

    r156 r188  
    1 /* $Id: crt.cpp,v 1.2 1999-06-22 17:08:16 phaller Exp $ */
     1/* $Id: crt.cpp,v 1.3 1999-06-25 13:59:01 phaller Exp $ */
    22
    33/*
     
    1414#include <wchar.h>
    1515#include <wcstr.h>
     16#include <wctype.h>
    1617
    1718#include "ntdll.h"
     
    2425
    2526
     27/*****************************************************************************
     28 * Name      :
     29 * Purpose   :
     30 * Parameters:
     31 * Variables :
     32 * Result    :
     33 * Remark    : NTDLL.882
     34 * Status    :
     35 *
     36 * Author    : Patrick Haller [Thu, 1999/06/22 20:44]
     37 *****************************************************************************/
     38
     39LPWSTR CDECL OS2_wcsupr(LPWSTR str)
     40{
     41  DWORD dwIndex;
     42
     43  dprintf(("NTDLL: _wcsupr(%08xh)\n",
     44           str));
     45
     46  for (dwIndex = wcslen((const wchar_t*)str);
     47       dwIndex;
     48       dwIndex--)
     49  {
     50    towupper(str[dwIndex]);
     51  }
     52
     53  return (str);
     54}
     55
     56
    2657
    2758/*****************************************************************************
     
    317348  return (isupper(i));
    318349}
     350
     351
     352/*****************************************************************************
     353 * Name      :
     354 * Purpose   :
     355 * Parameters:
     356 * Variables :
     357 * Result    :
     358 * Remark    : NTDLL.911
     359 * Status    :
     360 *
     361 * Author    : Patrick Haller [Thu, 1999/06/22 20:44]
     362 *****************************************************************************/
     363
     364LPSTR CDECL OS2sprintf(LPSTR lpstrBuffer,
     365                       LPSTR lpstrFormat,
     366                       ...)
     367{
     368  va_list argptr;                          /* -> variable argument list */
     369
     370  dprintf(("NTDLL: sprintf(%08xh,%s)\n",
     371           lpstrBuffer,
     372           lpstrFormat));
     373
     374  va_start(argptr,
     375           lpstrFormat);                   /* get pointer to argument list */
     376  vsprintf(lpstrBuffer,
     377           lpstrFormat,
     378           argptr);
     379  va_end(argptr);                          /* done with variable arguments */
     380
     381  return (lpstrBuffer);
     382}
     383
    319384
    320385
Note: See TracChangeset for help on using the changeset viewer.