Changeset 188 for trunk/src/NTDLL/crt.cpp
- Timestamp:
- Jun 25, 1999, 3:59:02 PM (26 years ago)
- 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:16phaller Exp $ */1 /* $Id: crt.cpp,v 1.3 1999-06-25 13:59:01 phaller Exp $ */ 2 2 3 3 /* … … 14 14 #include <wchar.h> 15 15 #include <wcstr.h> 16 #include <wctype.h> 16 17 17 18 #include "ntdll.h" … … 24 25 25 26 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 39 LPWSTR 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 26 57 27 58 /***************************************************************************** … … 317 348 return (isupper(i)); 318 349 } 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 364 LPSTR 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 319 384 320 385
Note:
See TracChangeset
for help on using the changeset viewer.