| 1 | /* $Id: crt.cpp,v 1.7 1999-08-19 20:43:19 phaller Exp $ */
|
|---|
| 2 |
|
|---|
| 3 | /*
|
|---|
| 4 | * Project Odin Software License can be found in LICENSE.TXT
|
|---|
| 5 | * Win32 NT Runtime / NTDLL for OS/2
|
|---|
| 6 | * Copyright 1999 Patrick Haller (phaller@gmx.net)
|
|---|
| 7 | */
|
|---|
| 8 |
|
|---|
| 9 | /****************************************************************************
|
|---|
| 10 | * Include *
|
|---|
| 11 | ****************************************************************************/
|
|---|
| 12 |
|
|---|
| 13 | #include <odin.h>
|
|---|
| 14 | #include <stdlib.h>
|
|---|
| 15 | #include <stdio.h>
|
|---|
| 16 | #include <string.h>
|
|---|
| 17 | #include <math.h>
|
|---|
| 18 | #include <ctype.h>
|
|---|
| 19 | #include <wchar.h>
|
|---|
| 20 | #include <wcstr.h>
|
|---|
| 21 | #include <wctype.h>
|
|---|
| 22 |
|
|---|
| 23 | #include "ntdll.h"
|
|---|
| 24 |
|
|---|
| 25 | /*
|
|---|
| 26 | NTDLL.sprintf
|
|---|
| 27 | NTDLL._wcsicmp
|
|---|
| 28 | */
|
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 | /****************************************************************************
|
|---|
| 32 | * Local Prototypes *
|
|---|
| 33 | ****************************************************************************/
|
|---|
| 34 |
|
|---|
| 35 |
|
|---|
| 36 | LPWSTR CDECL OS2_wcsupr(LPWSTR str);
|
|---|
| 37 | int CDECL OS2_wcsnicmp(LPWSTR str1, LPWSTR str2, long l);
|
|---|
| 38 |
|
|---|
| 39 |
|
|---|
| 40 |
|
|---|
| 41 | /*****************************************************************************
|
|---|
| 42 | * Name :
|
|---|
| 43 | * Purpose :
|
|---|
| 44 | * Parameters:
|
|---|
| 45 | * Variables :
|
|---|
| 46 | * Result :
|
|---|
| 47 | * Remark : NTDLL.879
|
|---|
| 48 | * Status :
|
|---|
| 49 | *
|
|---|
| 50 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 51 | *****************************************************************************/
|
|---|
| 52 |
|
|---|
| 53 | int CDECL OS2_wcsicmp(LPWSTR str1, LPWSTR str2)
|
|---|
| 54 | {
|
|---|
| 55 | dprintf(("NTDLL: _wcsicmp(%08xh,%08xh)\n",
|
|---|
| 56 | str1,
|
|---|
| 57 | str2));
|
|---|
| 58 |
|
|---|
| 59 | return (OS2_wcsnicmp(str1,
|
|---|
| 60 | str2,
|
|---|
| 61 | wcslen((wchar_t*) str1)));
|
|---|
| 62 | }
|
|---|
| 63 |
|
|---|
| 64 |
|
|---|
| 65 | /*****************************************************************************
|
|---|
| 66 | * Name :
|
|---|
| 67 | * Purpose :
|
|---|
| 68 | * Parameters:
|
|---|
| 69 | * Variables :
|
|---|
| 70 | * Result :
|
|---|
| 71 | * Remark : NTDLL.880
|
|---|
| 72 | * Status :
|
|---|
| 73 | *
|
|---|
| 74 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 75 | *****************************************************************************/
|
|---|
| 76 |
|
|---|
| 77 | LPWSTR CDECL OS2_wcslwr(LPWSTR str)
|
|---|
| 78 | {
|
|---|
| 79 | DWORD dwIndex;
|
|---|
| 80 |
|
|---|
| 81 | dprintf(("NTDLL: _wcslwr(%08xh)\n",
|
|---|
| 82 | str));
|
|---|
| 83 |
|
|---|
| 84 | for (dwIndex = wcslen((const wchar_t*)str);
|
|---|
| 85 | dwIndex;
|
|---|
| 86 | dwIndex--)
|
|---|
| 87 | {
|
|---|
| 88 | towlower(str[dwIndex]);
|
|---|
| 89 | }
|
|---|
| 90 |
|
|---|
| 91 | return (str);
|
|---|
| 92 | }
|
|---|
| 93 |
|
|---|
| 94 |
|
|---|
| 95 | /*****************************************************************************
|
|---|
| 96 | * Name :
|
|---|
| 97 | * Purpose :
|
|---|
| 98 | * Parameters:
|
|---|
| 99 | * Variables :
|
|---|
| 100 | * Result :
|
|---|
| 101 | * Remark : NTDLL.881
|
|---|
| 102 | * Status :
|
|---|
| 103 | *
|
|---|
| 104 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 105 | *****************************************************************************/
|
|---|
| 106 |
|
|---|
| 107 | int CDECL OS2_wcsnicmp(LPWSTR str1, LPWSTR str2, long l)
|
|---|
| 108 | {
|
|---|
| 109 | LPWSTR w1;
|
|---|
| 110 | LPWSTR w2;
|
|---|
| 111 |
|
|---|
| 112 | dprintf(("NTDLL: _wcsnicmp(%08xh,%08xh,%08xh)\n",
|
|---|
| 113 | str1,
|
|---|
| 114 | str2,
|
|---|
| 115 | l));
|
|---|
| 116 |
|
|---|
| 117 | w1 = HEAP_strdupW(GetProcessHeap(),0,str1);
|
|---|
| 118 | w2 = HEAP_strdupW(GetProcessHeap(),0,str2);
|
|---|
| 119 | OS2_wcsupr(w1);
|
|---|
| 120 | OS2_wcsupr(w2);
|
|---|
| 121 |
|
|---|
| 122 | return (wcsncmp((wchar_t*)w1,
|
|---|
| 123 | (wchar_t*)w2,
|
|---|
| 124 | l));
|
|---|
| 125 | }
|
|---|
| 126 |
|
|---|
| 127 |
|
|---|
| 128 | /*****************************************************************************
|
|---|
| 129 | * Name :
|
|---|
| 130 | * Purpose :
|
|---|
| 131 | * Parameters:
|
|---|
| 132 | * Variables :
|
|---|
| 133 | * Result :
|
|---|
| 134 | * Remark : NTDLL.882
|
|---|
| 135 | * Status :
|
|---|
| 136 | *
|
|---|
| 137 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 138 | *****************************************************************************/
|
|---|
| 139 |
|
|---|
| 140 | LPWSTR CDECL OS2_wcsupr(LPWSTR str)
|
|---|
| 141 | {
|
|---|
| 142 | DWORD dwIndex;
|
|---|
| 143 |
|
|---|
| 144 | dprintf(("NTDLL: _wcsupr(%08xh)\n",
|
|---|
| 145 | str));
|
|---|
| 146 |
|
|---|
| 147 | for (dwIndex = wcslen((const wchar_t*)str);
|
|---|
| 148 | dwIndex;
|
|---|
| 149 | dwIndex--)
|
|---|
| 150 | {
|
|---|
| 151 | towupper(str[dwIndex]);
|
|---|
| 152 | }
|
|---|
| 153 |
|
|---|
| 154 | return (str);
|
|---|
| 155 | }
|
|---|
| 156 |
|
|---|
| 157 |
|
|---|
| 158 |
|
|---|
| 159 | /*****************************************************************************
|
|---|
| 160 | * Name :
|
|---|
| 161 | * Purpose :
|
|---|
| 162 | * Parameters:
|
|---|
| 163 | * Variables :
|
|---|
| 164 | * Result :
|
|---|
| 165 | * Remark : NTDLL.883
|
|---|
| 166 | * Status :
|
|---|
| 167 | *
|
|---|
| 168 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 169 | *****************************************************************************/
|
|---|
| 170 |
|
|---|
| 171 | double CDECL OS2abs(double d)
|
|---|
| 172 | {
|
|---|
| 173 | dprintf(("NTDLL: abs(%f)\n",
|
|---|
| 174 | d));
|
|---|
| 175 |
|
|---|
| 176 | return (abs(d));
|
|---|
| 177 | }
|
|---|
| 178 |
|
|---|
| 179 |
|
|---|
| 180 | /*****************************************************************************
|
|---|
| 181 | * Name :
|
|---|
| 182 | * Purpose :
|
|---|
| 183 | * Parameters:
|
|---|
| 184 | * Variables :
|
|---|
| 185 | * Result :
|
|---|
| 186 | * Remark : NTDLL.884
|
|---|
| 187 | * Status :
|
|---|
| 188 | *
|
|---|
| 189 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 190 | *****************************************************************************/
|
|---|
| 191 |
|
|---|
| 192 | double CDECL OS2atan(double d)
|
|---|
| 193 | {
|
|---|
| 194 | dprintf(("NTDLL: atan(%f)\n",
|
|---|
| 195 | d));
|
|---|
| 196 |
|
|---|
| 197 | return (atan(d));
|
|---|
| 198 | }
|
|---|
| 199 |
|
|---|
| 200 |
|
|---|
| 201 | /*****************************************************************************
|
|---|
| 202 | * Name :
|
|---|
| 203 | * Purpose :
|
|---|
| 204 | * Parameters:
|
|---|
| 205 | * Variables :
|
|---|
| 206 | * Result :
|
|---|
| 207 | * Remark : NTDLL.885
|
|---|
| 208 | * Status :
|
|---|
| 209 | *
|
|---|
| 210 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 211 | *****************************************************************************/
|
|---|
| 212 |
|
|---|
| 213 | int CDECL OS2atoi(LPSTR str)
|
|---|
| 214 | {
|
|---|
| 215 | dprintf(("NTDLL: atoi(%s)\n",
|
|---|
| 216 | str));
|
|---|
| 217 |
|
|---|
| 218 | return (atoi(str));
|
|---|
| 219 | }
|
|---|
| 220 |
|
|---|
| 221 |
|
|---|
| 222 | /*****************************************************************************
|
|---|
| 223 | * Name :
|
|---|
| 224 | * Purpose :
|
|---|
| 225 | * Parameters:
|
|---|
| 226 | * Variables :
|
|---|
| 227 | * Result :
|
|---|
| 228 | * Remark : NTDLL.886
|
|---|
| 229 | * Status :
|
|---|
| 230 | *
|
|---|
| 231 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 232 | *****************************************************************************/
|
|---|
| 233 |
|
|---|
| 234 | long CDECL OS2atol(LPSTR str)
|
|---|
| 235 | {
|
|---|
| 236 | dprintf(("NTDLL: atol(%s)\n",
|
|---|
| 237 | str));
|
|---|
| 238 |
|
|---|
| 239 | return (atol(str));
|
|---|
| 240 | }
|
|---|
| 241 |
|
|---|
| 242 |
|
|---|
| 243 | /*****************************************************************************
|
|---|
| 244 | * Name :
|
|---|
| 245 | * Purpose :
|
|---|
| 246 | * Parameters:
|
|---|
| 247 | * Variables :
|
|---|
| 248 | * Result :
|
|---|
| 249 | * Remark : NTDLL.887
|
|---|
| 250 | * Status :
|
|---|
| 251 | *
|
|---|
| 252 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 253 | *****************************************************************************/
|
|---|
| 254 |
|
|---|
| 255 | double CDECL OS2ceil(double d)
|
|---|
| 256 | {
|
|---|
| 257 | dprintf(("NTDLL: ceil(%f)\n",
|
|---|
| 258 | d));
|
|---|
| 259 |
|
|---|
| 260 | return (ceil(d));
|
|---|
| 261 | }
|
|---|
| 262 |
|
|---|
| 263 |
|
|---|
| 264 | /*****************************************************************************
|
|---|
| 265 | * Name :
|
|---|
| 266 | * Purpose :
|
|---|
| 267 | * Parameters:
|
|---|
| 268 | * Variables :
|
|---|
| 269 | * Result :
|
|---|
| 270 | * Remark : NTDLL.888
|
|---|
| 271 | * Status :
|
|---|
| 272 | *
|
|---|
| 273 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 274 | *****************************************************************************/
|
|---|
| 275 |
|
|---|
| 276 | double CDECL OS2cos(double d)
|
|---|
| 277 | {
|
|---|
| 278 | dprintf(("NTDLL: cos(%f)\n",
|
|---|
| 279 | d));
|
|---|
| 280 |
|
|---|
| 281 | return (cos(d));
|
|---|
| 282 | }
|
|---|
| 283 |
|
|---|
| 284 |
|
|---|
| 285 | /*****************************************************************************
|
|---|
| 286 | * Name :
|
|---|
| 287 | * Purpose :
|
|---|
| 288 | * Parameters:
|
|---|
| 289 | * Variables :
|
|---|
| 290 | * Result :
|
|---|
| 291 | * Remark : NTDLL.889
|
|---|
| 292 | * Status :
|
|---|
| 293 | *
|
|---|
| 294 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 295 | *****************************************************************************/
|
|---|
| 296 |
|
|---|
| 297 | double CDECL OS2fabs(double d)
|
|---|
| 298 | {
|
|---|
| 299 | dprintf(("NTDLL: fabs(%f)\n",
|
|---|
| 300 | d));
|
|---|
| 301 |
|
|---|
| 302 | return (fabs(d));
|
|---|
| 303 | }
|
|---|
| 304 |
|
|---|
| 305 |
|
|---|
| 306 | /*****************************************************************************
|
|---|
| 307 | * Name :
|
|---|
| 308 | * Purpose :
|
|---|
| 309 | * Parameters:
|
|---|
| 310 | * Variables :
|
|---|
| 311 | * Result :
|
|---|
| 312 | * Remark : NTDLL.890
|
|---|
| 313 | * Status :
|
|---|
| 314 | *
|
|---|
| 315 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 316 | *****************************************************************************/
|
|---|
| 317 |
|
|---|
| 318 | double CDECL OS2floor(double d)
|
|---|
| 319 | {
|
|---|
| 320 | dprintf(("NTDLL: floor(%f)\n",
|
|---|
| 321 | d));
|
|---|
| 322 |
|
|---|
| 323 | return (floor(d));
|
|---|
| 324 | }
|
|---|
| 325 |
|
|---|
| 326 |
|
|---|
| 327 | /*****************************************************************************
|
|---|
| 328 | * Name :
|
|---|
| 329 | * Purpose :
|
|---|
| 330 | * Parameters:
|
|---|
| 331 | * Variables :
|
|---|
| 332 | * Result :
|
|---|
| 333 | * Remark : NTDLL.891
|
|---|
| 334 | * Status :
|
|---|
| 335 | *
|
|---|
| 336 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 337 | *****************************************************************************/
|
|---|
| 338 |
|
|---|
| 339 | int CDECL OS2isalpha(int i)
|
|---|
| 340 | {
|
|---|
| 341 | dprintf(("NTDLL: isalpha(%08xh)\n",
|
|---|
| 342 | i));
|
|---|
| 343 |
|
|---|
| 344 | return (isalpha(i));
|
|---|
| 345 | }
|
|---|
| 346 |
|
|---|
| 347 |
|
|---|
| 348 | /*****************************************************************************
|
|---|
| 349 | * Name :
|
|---|
| 350 | * Purpose :
|
|---|
| 351 | * Parameters:
|
|---|
| 352 | * Variables :
|
|---|
| 353 | * Result :
|
|---|
| 354 | * Remark : NTDLL.892
|
|---|
| 355 | * Status :
|
|---|
| 356 | *
|
|---|
| 357 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 358 | *****************************************************************************/
|
|---|
| 359 |
|
|---|
| 360 | int CDECL OS2isdigit(int i)
|
|---|
| 361 | {
|
|---|
| 362 | dprintf(("NTDLL: isdigit(%08xh)\n",
|
|---|
| 363 | i));
|
|---|
| 364 |
|
|---|
| 365 | return (isdigit(i));
|
|---|
| 366 | }
|
|---|
| 367 |
|
|---|
| 368 |
|
|---|
| 369 | /*****************************************************************************
|
|---|
| 370 | * Name :
|
|---|
| 371 | * Purpose :
|
|---|
| 372 | * Parameters:
|
|---|
| 373 | * Variables :
|
|---|
| 374 | * Result :
|
|---|
| 375 | * Remark : NTDLL.893
|
|---|
| 376 | * Status :
|
|---|
| 377 | *
|
|---|
| 378 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 379 | *****************************************************************************/
|
|---|
| 380 |
|
|---|
| 381 | int CDECL OS2islower(int i)
|
|---|
| 382 | {
|
|---|
| 383 | dprintf(("NTDLL: islower(%08xh)\n",
|
|---|
| 384 | i));
|
|---|
| 385 |
|
|---|
| 386 | return (islower(i));
|
|---|
| 387 | }
|
|---|
| 388 |
|
|---|
| 389 |
|
|---|
| 390 | /*****************************************************************************
|
|---|
| 391 | * Name :
|
|---|
| 392 | * Purpose :
|
|---|
| 393 | * Parameters:
|
|---|
| 394 | * Variables :
|
|---|
| 395 | * Result :
|
|---|
| 396 | * Remark : NTDLL.894
|
|---|
| 397 | * Status :
|
|---|
| 398 | *
|
|---|
| 399 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 400 | *****************************************************************************/
|
|---|
| 401 |
|
|---|
| 402 | int CDECL OS2isprint(int i)
|
|---|
| 403 | {
|
|---|
| 404 | dprintf(("NTDLL: isprint(%08xh)\n",
|
|---|
| 405 | i));
|
|---|
| 406 |
|
|---|
| 407 | return (isprint(i));
|
|---|
| 408 | }
|
|---|
| 409 |
|
|---|
| 410 |
|
|---|
| 411 | /*****************************************************************************
|
|---|
| 412 | * Name :
|
|---|
| 413 | * Purpose :
|
|---|
| 414 | * Parameters:
|
|---|
| 415 | * Variables :
|
|---|
| 416 | * Result :
|
|---|
| 417 | * Remark : NTDLL.895
|
|---|
| 418 | * Status :
|
|---|
| 419 | *
|
|---|
| 420 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 421 | *****************************************************************************/
|
|---|
| 422 |
|
|---|
| 423 | int CDECL OS2isspace(int i)
|
|---|
| 424 | {
|
|---|
| 425 | dprintf(("NTDLL: isspace(%08xh)\n",
|
|---|
| 426 | i));
|
|---|
| 427 |
|
|---|
| 428 | return (isspace(i));
|
|---|
| 429 | }
|
|---|
| 430 |
|
|---|
| 431 |
|
|---|
| 432 | /*****************************************************************************
|
|---|
| 433 | * Name :
|
|---|
| 434 | * Purpose :
|
|---|
| 435 | * Parameters:
|
|---|
| 436 | * Variables :
|
|---|
| 437 | * Result :
|
|---|
| 438 | * Remark : NTDLL.896
|
|---|
| 439 | * Status :
|
|---|
| 440 | *
|
|---|
| 441 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 442 | *****************************************************************************/
|
|---|
| 443 |
|
|---|
| 444 | int CDECL OS2isupper(int i)
|
|---|
| 445 | {
|
|---|
| 446 | dprintf(("NTDLL: isupper(%08xh)\n",
|
|---|
| 447 | i));
|
|---|
| 448 |
|
|---|
| 449 | return (isupper(i));
|
|---|
| 450 | }
|
|---|
| 451 |
|
|---|
| 452 |
|
|---|
| 453 | /*****************************************************************************
|
|---|
| 454 | * Name :
|
|---|
| 455 | * Purpose :
|
|---|
| 456 | * Parameters:
|
|---|
| 457 | * Variables :
|
|---|
| 458 | * Result :
|
|---|
| 459 | * Remark : NTDLL.911
|
|---|
| 460 | * Status :
|
|---|
| 461 | *
|
|---|
| 462 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 463 | *****************************************************************************/
|
|---|
| 464 |
|
|---|
| 465 | LPSTR CDECL OS2sprintf(LPSTR lpstrBuffer,
|
|---|
| 466 | LPSTR lpstrFormat,
|
|---|
| 467 | ...)
|
|---|
| 468 | {
|
|---|
| 469 | va_list argptr; /* -> variable argument list */
|
|---|
| 470 |
|
|---|
| 471 | dprintf(("NTDLL: sprintf(%08xh,%s)\n",
|
|---|
| 472 | lpstrBuffer,
|
|---|
| 473 | lpstrFormat));
|
|---|
| 474 |
|
|---|
| 475 | va_start(argptr,
|
|---|
| 476 | lpstrFormat); /* get pointer to argument list */
|
|---|
| 477 | vsprintf(lpstrBuffer,
|
|---|
| 478 | lpstrFormat,
|
|---|
| 479 | argptr);
|
|---|
| 480 | va_end(argptr); /* done with variable arguments */
|
|---|
| 481 |
|
|---|
| 482 | return (lpstrBuffer);
|
|---|
| 483 | }
|
|---|
| 484 |
|
|---|
| 485 |
|
|---|
| 486 |
|
|---|
| 487 | /*****************************************************************************
|
|---|
| 488 | * Name :
|
|---|
| 489 | * Purpose :
|
|---|
| 490 | * Parameters:
|
|---|
| 491 | * Variables :
|
|---|
| 492 | * Result :
|
|---|
| 493 | * Remark : NTDLL.914
|
|---|
| 494 | * Status :
|
|---|
| 495 | *
|
|---|
| 496 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 497 | *****************************************************************************/
|
|---|
| 498 |
|
|---|
| 499 | LPSTR CDECL OS2strcat( LPSTR str1,
|
|---|
| 500 | const LPSTR str2)
|
|---|
| 501 | {
|
|---|
| 502 | dprintf(("NTDLL: strcat(%s,%s)\n",
|
|---|
| 503 | str1,
|
|---|
| 504 | str2));
|
|---|
| 505 |
|
|---|
| 506 | return (strcat(str1, str2));
|
|---|
| 507 | }
|
|---|
| 508 |
|
|---|
| 509 |
|
|---|
| 510 | /*****************************************************************************
|
|---|
| 511 | * Name :
|
|---|
| 512 | * Purpose :
|
|---|
| 513 | * Parameters:
|
|---|
| 514 | * Variables :
|
|---|
| 515 | * Result :
|
|---|
| 516 | * Remark : NTDLL.915
|
|---|
| 517 | * Status :
|
|---|
| 518 | *
|
|---|
| 519 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 520 | *****************************************************************************/
|
|---|
| 521 |
|
|---|
| 522 | LPSTR CDECL OS2strchr(const LPSTR str,
|
|---|
| 523 | int i)
|
|---|
| 524 | {
|
|---|
| 525 | dprintf(("NTDLL: strchr(%s,%08xh)\n",
|
|---|
| 526 | str,
|
|---|
| 527 | i));
|
|---|
| 528 |
|
|---|
| 529 | return (strchr(str, i));
|
|---|
| 530 | }
|
|---|
| 531 |
|
|---|
| 532 |
|
|---|
| 533 | /*****************************************************************************
|
|---|
| 534 | * Name :
|
|---|
| 535 | * Purpose :
|
|---|
| 536 | * Parameters:
|
|---|
| 537 | * Variables :
|
|---|
| 538 | * Result :
|
|---|
| 539 | * Remark : NTDLL.916
|
|---|
| 540 | * Status :
|
|---|
| 541 | *
|
|---|
| 542 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 543 | *****************************************************************************/
|
|---|
| 544 |
|
|---|
| 545 | int CDECL OS2strcmp(const LPSTR str1,
|
|---|
| 546 | const LPSTR str2)
|
|---|
| 547 | {
|
|---|
| 548 | dprintf(("NTDLL: strcmp(%s,%s)\n",
|
|---|
| 549 | str1,
|
|---|
| 550 | str2));
|
|---|
| 551 |
|
|---|
| 552 | return (strcmp(str1, str2));
|
|---|
| 553 | }
|
|---|
| 554 |
|
|---|
| 555 |
|
|---|
| 556 | /*****************************************************************************
|
|---|
| 557 | * Name :
|
|---|
| 558 | * Purpose :
|
|---|
| 559 | * Parameters:
|
|---|
| 560 | * Variables :
|
|---|
| 561 | * Result :
|
|---|
| 562 | * Remark : NTDLL.?
|
|---|
| 563 | * Status :
|
|---|
| 564 | *
|
|---|
| 565 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 566 | *****************************************************************************/
|
|---|
| 567 |
|
|---|
| 568 | int CDECL OS2_stricmp(const LPSTR str1,
|
|---|
| 569 | const LPSTR str2)
|
|---|
| 570 | {
|
|---|
| 571 | dprintf(("NTDLL: _stricmp(%s,%s)\n",
|
|---|
| 572 | str1,
|
|---|
| 573 | str2));
|
|---|
| 574 |
|
|---|
| 575 | return (stricmp(str1, str2));
|
|---|
| 576 | }
|
|---|
| 577 |
|
|---|
| 578 |
|
|---|
| 579 | /*****************************************************************************
|
|---|
| 580 | * Name :
|
|---|
| 581 | * Purpose :
|
|---|
| 582 | * Parameters:
|
|---|
| 583 | * Variables :
|
|---|
| 584 | * Result :
|
|---|
| 585 | * Remark : NTDLL.917
|
|---|
| 586 | * Status :
|
|---|
| 587 | *
|
|---|
| 588 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 589 | *****************************************************************************/
|
|---|
| 590 |
|
|---|
| 591 | LPSTR CDECL OS2strcpy( LPSTR str1,
|
|---|
| 592 | const LPSTR str2)
|
|---|
| 593 | {
|
|---|
| 594 | dprintf(("NTDLL: strcpy(%s,%s)\n",
|
|---|
| 595 | str1,
|
|---|
| 596 | str2));
|
|---|
| 597 |
|
|---|
| 598 | return (strcpy(str1, str2));
|
|---|
| 599 | }
|
|---|
| 600 |
|
|---|
| 601 |
|
|---|
| 602 | /*****************************************************************************
|
|---|
| 603 | * Name :
|
|---|
| 604 | * Purpose :
|
|---|
| 605 | * Parameters:
|
|---|
| 606 | * Variables :
|
|---|
| 607 | * Result :
|
|---|
| 608 | * Remark : NTDLL.918
|
|---|
| 609 | * Status :
|
|---|
| 610 | *
|
|---|
| 611 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 612 | *****************************************************************************/
|
|---|
| 613 |
|
|---|
| 614 | size_t CDECL OS2strcspn(const LPSTR str1,
|
|---|
| 615 | LPSTR str2)
|
|---|
| 616 | {
|
|---|
| 617 | dprintf(("NTDLL: strcspn(%s,%s)\n",
|
|---|
| 618 | str1,
|
|---|
| 619 | str2));
|
|---|
| 620 |
|
|---|
| 621 | return (strcspn(str1, str2));
|
|---|
| 622 | }
|
|---|
| 623 |
|
|---|
| 624 |
|
|---|
| 625 | /*****************************************************************************
|
|---|
| 626 | * Name :
|
|---|
| 627 | * Purpose :
|
|---|
| 628 | * Parameters:
|
|---|
| 629 | * Variables :
|
|---|
| 630 | * Result :
|
|---|
| 631 | * Remark : NTDLL.919
|
|---|
| 632 | * Status :
|
|---|
| 633 | *
|
|---|
| 634 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 635 | *****************************************************************************/
|
|---|
| 636 |
|
|---|
| 637 | size_t CDECL OS2strlen(const LPSTR str)
|
|---|
| 638 | {
|
|---|
| 639 | dprintf(("NTDLL: strlen(%s)\n",
|
|---|
| 640 | str));
|
|---|
| 641 |
|
|---|
| 642 | return (strlen(str));
|
|---|
| 643 | }
|
|---|
| 644 |
|
|---|
| 645 |
|
|---|
| 646 | /*****************************************************************************
|
|---|
| 647 | * Name :
|
|---|
| 648 | * Purpose :
|
|---|
| 649 | * Parameters:
|
|---|
| 650 | * Variables :
|
|---|
| 651 | * Result :
|
|---|
| 652 | * Remark : NTDLL.920
|
|---|
| 653 | * Status :
|
|---|
| 654 | *
|
|---|
| 655 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 656 | *****************************************************************************/
|
|---|
| 657 |
|
|---|
| 658 | LPSTR CDECL OS2strncat( LPSTR str1,
|
|---|
| 659 | const LPSTR str2,
|
|---|
| 660 | size_t i)
|
|---|
| 661 | {
|
|---|
| 662 | dprintf(("NTDLL: strncat(%s,%s,%08xh)\n",
|
|---|
| 663 | str1,
|
|---|
| 664 | str2,
|
|---|
| 665 | i));
|
|---|
| 666 |
|
|---|
| 667 | return (strncat(str1, str2, i));
|
|---|
| 668 | }
|
|---|
| 669 |
|
|---|
| 670 |
|
|---|
| 671 | /*****************************************************************************
|
|---|
| 672 | * Name :
|
|---|
| 673 | * Purpose :
|
|---|
| 674 | * Parameters:
|
|---|
| 675 | * Variables :
|
|---|
| 676 | * Result :
|
|---|
| 677 | * Remark : NTDLL.921
|
|---|
| 678 | * Status :
|
|---|
| 679 | *
|
|---|
| 680 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 681 | *****************************************************************************/
|
|---|
| 682 |
|
|---|
| 683 | int CDECL OS2strncmp(const LPSTR str1,
|
|---|
| 684 | const LPSTR str2,
|
|---|
| 685 | size_t i)
|
|---|
| 686 | {
|
|---|
| 687 | dprintf(("NTDLL: strncmp(%s,%s,%08xh)\n",
|
|---|
| 688 | str1,
|
|---|
| 689 | str2,
|
|---|
| 690 | i));
|
|---|
| 691 |
|
|---|
| 692 | return (strncmp(str1, str2, i));
|
|---|
| 693 | }
|
|---|
| 694 |
|
|---|
| 695 |
|
|---|
| 696 | /*****************************************************************************
|
|---|
| 697 | * Name :
|
|---|
| 698 | * Purpose :
|
|---|
| 699 | * Parameters:
|
|---|
| 700 | * Variables :
|
|---|
| 701 | * Result :
|
|---|
| 702 | * Remark : NTDLL.922
|
|---|
| 703 | * Status :
|
|---|
| 704 | *
|
|---|
| 705 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 706 | *****************************************************************************/
|
|---|
| 707 |
|
|---|
| 708 | LPSTR CDECL OS2strncpy(const LPSTR str1,
|
|---|
| 709 | const LPSTR str2,
|
|---|
| 710 | size_t i)
|
|---|
| 711 | {
|
|---|
| 712 | dprintf(("NTDLL: strncpy(%s,%s,%08xh)\n",
|
|---|
| 713 | str1,
|
|---|
| 714 | str2,
|
|---|
| 715 | i));
|
|---|
| 716 |
|
|---|
| 717 | return (strncpy(str1, str2, i));
|
|---|
| 718 | }
|
|---|
| 719 |
|
|---|
| 720 |
|
|---|
| 721 | /*****************************************************************************
|
|---|
| 722 | * Name :
|
|---|
| 723 | * Purpose :
|
|---|
| 724 | * Parameters:
|
|---|
| 725 | * Variables :
|
|---|
| 726 | * Result :
|
|---|
| 727 | * Remark : NTDLL.923
|
|---|
| 728 | * Status :
|
|---|
| 729 | *
|
|---|
| 730 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 731 | *****************************************************************************/
|
|---|
| 732 |
|
|---|
| 733 | LPSTR CDECL OS2strpbrk(const LPSTR str1,
|
|---|
| 734 | const LPSTR str2)
|
|---|
| 735 | {
|
|---|
| 736 | dprintf(("NTDLL: strpbrk(%s,%s)\n",
|
|---|
| 737 | str1,
|
|---|
| 738 | str2));
|
|---|
| 739 |
|
|---|
| 740 | return (strpbrk(str1, str2));
|
|---|
| 741 | }
|
|---|
| 742 |
|
|---|
| 743 |
|
|---|
| 744 | /*****************************************************************************
|
|---|
| 745 | * Name :
|
|---|
| 746 | * Purpose :
|
|---|
| 747 | * Parameters:
|
|---|
| 748 | * Variables :
|
|---|
| 749 | * Result :
|
|---|
| 750 | * Remark : NTDLL.924
|
|---|
| 751 | * Status :
|
|---|
| 752 | *
|
|---|
| 753 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 754 | *****************************************************************************/
|
|---|
| 755 |
|
|---|
| 756 | LPSTR CDECL OS2strrchr(const LPSTR str,
|
|---|
| 757 | size_t i)
|
|---|
| 758 | {
|
|---|
| 759 | dprintf(("NTDLL: strrchr(%s,%08xh)\n",
|
|---|
| 760 | str,
|
|---|
| 761 | i));
|
|---|
| 762 |
|
|---|
| 763 | return (strrchr(str, i));
|
|---|
| 764 | }
|
|---|
| 765 |
|
|---|
| 766 |
|
|---|
| 767 | /*****************************************************************************
|
|---|
| 768 | * Name :
|
|---|
| 769 | * Purpose :
|
|---|
| 770 | * Parameters:
|
|---|
| 771 | * Variables :
|
|---|
| 772 | * Result :
|
|---|
| 773 | * Remark : NTDLL.925
|
|---|
| 774 | * Status :
|
|---|
| 775 | *
|
|---|
| 776 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 777 | *****************************************************************************/
|
|---|
| 778 |
|
|---|
| 779 | size_t CDECL OS2strspn(const LPSTR str1,
|
|---|
| 780 | const LPSTR str2)
|
|---|
| 781 | {
|
|---|
| 782 | dprintf(("NTDLL: strspn(%s,%s)\n",
|
|---|
| 783 | str1,
|
|---|
| 784 | str2));
|
|---|
| 785 |
|
|---|
| 786 | return (strspn(str1, str2));
|
|---|
| 787 | }
|
|---|
| 788 |
|
|---|
| 789 |
|
|---|
| 790 | /*****************************************************************************
|
|---|
| 791 | * Name :
|
|---|
| 792 | * Purpose :
|
|---|
| 793 | * Parameters:
|
|---|
| 794 | * Variables :
|
|---|
| 795 | * Result :
|
|---|
| 796 | * Remark : NTDLL.926
|
|---|
| 797 | * Status :
|
|---|
| 798 | *
|
|---|
| 799 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 800 | *****************************************************************************/
|
|---|
| 801 |
|
|---|
| 802 | LPSTR CDECL OS2strstr(const LPSTR str1,
|
|---|
| 803 | const LPSTR str2)
|
|---|
| 804 | {
|
|---|
| 805 | dprintf(("NTDLL: strstr(%s,%s)\n",
|
|---|
| 806 | str1,
|
|---|
| 807 | str2));
|
|---|
| 808 |
|
|---|
| 809 | return (strstr(str1, str2));
|
|---|
| 810 | }
|
|---|
| 811 |
|
|---|
| 812 |
|
|---|
| 813 | /*****************************************************************************
|
|---|
| 814 | * Name :
|
|---|
| 815 | * Purpose :
|
|---|
| 816 | * Parameters:
|
|---|
| 817 | * Variables :
|
|---|
| 818 | * Result :
|
|---|
| 819 | * Remark : NTDLL.927
|
|---|
| 820 | * Status :
|
|---|
| 821 | *
|
|---|
| 822 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 823 | *****************************************************************************/
|
|---|
| 824 |
|
|---|
| 825 | int CDECL OS2swprintf(const LPWSTR str,
|
|---|
| 826 | int i,
|
|---|
| 827 | const LPWSTR format,
|
|---|
| 828 | ...)
|
|---|
| 829 | {
|
|---|
| 830 | va_list valist;
|
|---|
| 831 | int rc;
|
|---|
| 832 |
|
|---|
| 833 | dprintf(("NTDLL: swprintf(%s,%d,%s)\n",
|
|---|
| 834 | str,
|
|---|
| 835 | i,
|
|---|
| 836 | format));
|
|---|
| 837 |
|
|---|
| 838 | va_start( valist, format );
|
|---|
| 839 | rc = vswprintf( (wchar_t*)str,
|
|---|
| 840 | i,
|
|---|
| 841 | (wchar_t*)format,
|
|---|
| 842 | valist );
|
|---|
| 843 | va_end( valist );
|
|---|
| 844 | return rc;
|
|---|
| 845 | }
|
|---|
| 846 |
|
|---|
| 847 |
|
|---|
| 848 | /*****************************************************************************
|
|---|
| 849 | * Name :
|
|---|
| 850 | * Purpose :
|
|---|
| 851 | * Parameters:
|
|---|
| 852 | * Variables :
|
|---|
| 853 | * Result :
|
|---|
| 854 | * Remark : NTDLL.928
|
|---|
| 855 | * Status :
|
|---|
| 856 | *
|
|---|
| 857 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 858 | *****************************************************************************/
|
|---|
| 859 |
|
|---|
| 860 | double CDECL OS2tan(double d)
|
|---|
| 861 | {
|
|---|
| 862 | dprintf(("NTDLL: tan(%f)\n",
|
|---|
| 863 | d));
|
|---|
| 864 |
|
|---|
| 865 | return (tan(d));
|
|---|
| 866 | }
|
|---|
| 867 |
|
|---|
| 868 |
|
|---|
| 869 | /*****************************************************************************
|
|---|
| 870 | * Name :
|
|---|
| 871 | * Purpose :
|
|---|
| 872 | * Parameters:
|
|---|
| 873 | * Variables :
|
|---|
| 874 | * Result :
|
|---|
| 875 | * Remark : NTDLL.929
|
|---|
| 876 | * Status :
|
|---|
| 877 | *
|
|---|
| 878 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 879 | *****************************************************************************/
|
|---|
| 880 |
|
|---|
| 881 | int CDECL OS2toupper(int c)
|
|---|
| 882 | {
|
|---|
| 883 | dprintf(("NTDLL: toupper(%c)\n",
|
|---|
| 884 | c));
|
|---|
| 885 |
|
|---|
| 886 | return (toupper(c));
|
|---|
| 887 | }
|
|---|
| 888 |
|
|---|
| 889 |
|
|---|
| 890 | /*****************************************************************************
|
|---|
| 891 | * Name :
|
|---|
| 892 | * Purpose :
|
|---|
| 893 | * Parameters:
|
|---|
| 894 | * Variables :
|
|---|
| 895 | * Result :
|
|---|
| 896 | * Remark : NTDLL.930
|
|---|
| 897 | * Status :
|
|---|
| 898 | *
|
|---|
| 899 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 900 | *****************************************************************************/
|
|---|
| 901 |
|
|---|
| 902 | int CDECL OS2tolower(int c)
|
|---|
| 903 | {
|
|---|
| 904 | dprintf(("NTDLL: tolower(%c)\n",
|
|---|
| 905 | c));
|
|---|
| 906 |
|
|---|
| 907 | return (tolower(c));
|
|---|
| 908 | }
|
|---|
| 909 |
|
|---|
| 910 |
|
|---|
| 911 | /*****************************************************************************
|
|---|
| 912 | * Name :
|
|---|
| 913 | * Purpose :
|
|---|
| 914 | * Parameters:
|
|---|
| 915 | * Variables :
|
|---|
| 916 | * Result :
|
|---|
| 917 | * Remark : NTDLL.931
|
|---|
| 918 | * Status :
|
|---|
| 919 | *
|
|---|
| 920 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 921 | *****************************************************************************/
|
|---|
| 922 |
|
|---|
| 923 | int CDECL OS2towupper(int c)
|
|---|
| 924 | {
|
|---|
| 925 | dprintf(("NTDLL: towupper(%c)\n",
|
|---|
| 926 | c));
|
|---|
| 927 |
|
|---|
| 928 | return (towupper(c));
|
|---|
| 929 | }
|
|---|
| 930 |
|
|---|
| 931 |
|
|---|
| 932 | /*****************************************************************************
|
|---|
| 933 | * Name :
|
|---|
| 934 | * Purpose :
|
|---|
| 935 | * Parameters:
|
|---|
| 936 | * Variables :
|
|---|
| 937 | * Result :
|
|---|
| 938 | * Remark : NTDLL.932
|
|---|
| 939 | * Status :
|
|---|
| 940 | *
|
|---|
| 941 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 942 | *****************************************************************************/
|
|---|
| 943 |
|
|---|
| 944 | int CDECL OS2towlower(int c)
|
|---|
| 945 | {
|
|---|
| 946 | dprintf(("NTDLL: towlower(%c)\n",
|
|---|
| 947 | c));
|
|---|
| 948 |
|
|---|
| 949 | return (towlower(c));
|
|---|
| 950 | }
|
|---|
| 951 |
|
|---|
| 952 |
|
|---|
| 953 |
|
|---|
| 954 | /*****************************************************************************
|
|---|
| 955 | * Name :
|
|---|
| 956 | * Purpose :
|
|---|
| 957 | * Parameters:
|
|---|
| 958 | * Variables :
|
|---|
| 959 | * Result :
|
|---|
| 960 | * Remark : NTDLL.934
|
|---|
| 961 | * Status :
|
|---|
| 962 | *
|
|---|
| 963 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 964 | *****************************************************************************/
|
|---|
| 965 |
|
|---|
| 966 | wchar_t* CDECL OS2wcscat( wchar_t* str1,
|
|---|
| 967 | const wchar_t* str2)
|
|---|
| 968 | {
|
|---|
| 969 | dprintf(("NTDLL: wcscat(%08xh,%08xh)\n",
|
|---|
| 970 | str1,
|
|---|
| 971 | str2));
|
|---|
| 972 |
|
|---|
| 973 | return (wcscat(str1, str2));
|
|---|
| 974 | }
|
|---|
| 975 |
|
|---|
| 976 |
|
|---|
| 977 | /*****************************************************************************
|
|---|
| 978 | * Name :
|
|---|
| 979 | * Purpose :
|
|---|
| 980 | * Parameters:
|
|---|
| 981 | * Variables :
|
|---|
| 982 | * Result :
|
|---|
| 983 | * Remark : NTDLL.935
|
|---|
| 984 | * Status :
|
|---|
| 985 | *
|
|---|
| 986 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 987 | *****************************************************************************/
|
|---|
| 988 |
|
|---|
| 989 | wchar_t* CDECL OS2wcschr(const wchar_t* str,
|
|---|
| 990 | int i)
|
|---|
| 991 | {
|
|---|
| 992 | dprintf(("NTDLL: wcschr(%08xh,%08xh)\n",
|
|---|
| 993 | str,
|
|---|
| 994 | i));
|
|---|
| 995 |
|
|---|
| 996 | return (wcschr(str, i));
|
|---|
| 997 | }
|
|---|
| 998 |
|
|---|
| 999 |
|
|---|
| 1000 | /*****************************************************************************
|
|---|
| 1001 | * Name :
|
|---|
| 1002 | * Purpose :
|
|---|
| 1003 | * Parameters:
|
|---|
| 1004 | * Variables :
|
|---|
| 1005 | * Result :
|
|---|
| 1006 | * Remark : NTDLL.936
|
|---|
| 1007 | * Status :
|
|---|
| 1008 | *
|
|---|
| 1009 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 1010 | *****************************************************************************/
|
|---|
| 1011 |
|
|---|
| 1012 | int CDECL OS2wcscmp(const wchar_t* str1,
|
|---|
| 1013 | const wchar_t* str2)
|
|---|
| 1014 | {
|
|---|
| 1015 | dprintf(("NTDLL: wcscmp(%08xh,%08xh)\n",
|
|---|
| 1016 | str1,
|
|---|
| 1017 | str2));
|
|---|
| 1018 |
|
|---|
| 1019 | return (wcscmp(str1, str2));
|
|---|
| 1020 | }
|
|---|
| 1021 |
|
|---|
| 1022 |
|
|---|
| 1023 | /*****************************************************************************
|
|---|
| 1024 | * Name :
|
|---|
| 1025 | * Purpose :
|
|---|
| 1026 | * Parameters:
|
|---|
| 1027 | * Variables :
|
|---|
| 1028 | * Result :
|
|---|
| 1029 | * Remark : NTDLL.937
|
|---|
| 1030 | * Status :
|
|---|
| 1031 | *
|
|---|
| 1032 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 1033 | *****************************************************************************/
|
|---|
| 1034 |
|
|---|
| 1035 | wchar_t* CDECL OS2wcscpy( wchar_t* str1,
|
|---|
| 1036 | const wchar_t* str2)
|
|---|
| 1037 | {
|
|---|
| 1038 | dprintf(("NTDLL: wcscpy(%08xh,%08xh)\n",
|
|---|
| 1039 | str1,
|
|---|
| 1040 | str2));
|
|---|
| 1041 |
|
|---|
| 1042 | return (wcscpy(str1, str2));
|
|---|
| 1043 | }
|
|---|
| 1044 |
|
|---|
| 1045 |
|
|---|
| 1046 | /*****************************************************************************
|
|---|
| 1047 | * Name :
|
|---|
| 1048 | * Purpose :
|
|---|
| 1049 | * Parameters:
|
|---|
| 1050 | * Variables :
|
|---|
| 1051 | * Result :
|
|---|
| 1052 | * Remark : NTDLL.938
|
|---|
| 1053 | * Status :
|
|---|
| 1054 | *
|
|---|
| 1055 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 1056 | *****************************************************************************/
|
|---|
| 1057 |
|
|---|
| 1058 | size_t CDECL OS2wcscspn(const wchar_t* str1,
|
|---|
| 1059 | wchar_t* str2)
|
|---|
| 1060 | {
|
|---|
| 1061 | dprintf(("NTDLL: wcscspn(%08xh,%08xh)\n",
|
|---|
| 1062 | str1,
|
|---|
| 1063 | str2));
|
|---|
| 1064 |
|
|---|
| 1065 | return (wcscspn(str1, str2));
|
|---|
| 1066 | }
|
|---|
| 1067 |
|
|---|
| 1068 |
|
|---|
| 1069 | /*****************************************************************************
|
|---|
| 1070 | * Name :
|
|---|
| 1071 | * Purpose :
|
|---|
| 1072 | * Parameters:
|
|---|
| 1073 | * Variables :
|
|---|
| 1074 | * Result :
|
|---|
| 1075 | * Remark : NTDLL.939
|
|---|
| 1076 | * Status :
|
|---|
| 1077 | *
|
|---|
| 1078 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 1079 | *****************************************************************************/
|
|---|
| 1080 |
|
|---|
| 1081 | size_t CDECL OS2wcslen(const wchar_t* str)
|
|---|
| 1082 | {
|
|---|
| 1083 | dprintf(("NTDLL: wcslen(%08xh)\n",
|
|---|
| 1084 | str));
|
|---|
| 1085 |
|
|---|
| 1086 | return (wcslen(str));
|
|---|
| 1087 | }
|
|---|
| 1088 |
|
|---|
| 1089 |
|
|---|
| 1090 | /*****************************************************************************
|
|---|
| 1091 | * Name :
|
|---|
| 1092 | * Purpose :
|
|---|
| 1093 | * Parameters:
|
|---|
| 1094 | * Variables :
|
|---|
| 1095 | * Result :
|
|---|
| 1096 | * Remark : NTDLL.940
|
|---|
| 1097 | * Status :
|
|---|
| 1098 | *
|
|---|
| 1099 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 1100 | *****************************************************************************/
|
|---|
| 1101 |
|
|---|
| 1102 | wchar_t* CDECL OS2wcsncat( wchar_t* str1,
|
|---|
| 1103 | const wchar_t* str2,
|
|---|
| 1104 | size_t i)
|
|---|
| 1105 | {
|
|---|
| 1106 | dprintf(("NTDLL: wcsncat(%08xh,%08xh,%08xh)\n",
|
|---|
| 1107 | str1,
|
|---|
| 1108 | str2,
|
|---|
| 1109 | i));
|
|---|
| 1110 |
|
|---|
| 1111 | return (wcsncat(str1, str2, i));
|
|---|
| 1112 | }
|
|---|
| 1113 |
|
|---|
| 1114 |
|
|---|
| 1115 | /*****************************************************************************
|
|---|
| 1116 | * Name :
|
|---|
| 1117 | * Purpose :
|
|---|
| 1118 | * Parameters:
|
|---|
| 1119 | * Variables :
|
|---|
| 1120 | * Result :
|
|---|
| 1121 | * Remark : NTDLL.941
|
|---|
| 1122 | * Status :
|
|---|
| 1123 | *
|
|---|
| 1124 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 1125 | *****************************************************************************/
|
|---|
| 1126 |
|
|---|
| 1127 | int CDECL OS2wcsncmp(const wchar_t* str1,
|
|---|
| 1128 | const wchar_t* str2,
|
|---|
| 1129 | size_t i)
|
|---|
| 1130 | {
|
|---|
| 1131 | dprintf(("NTDLL: wcsncmp(%08xh,%08xh,%08xh)\n",
|
|---|
| 1132 | str1,
|
|---|
| 1133 | str2,
|
|---|
| 1134 | i));
|
|---|
| 1135 |
|
|---|
| 1136 | return (wcsncmp(str1, str2, i));
|
|---|
| 1137 | }
|
|---|
| 1138 |
|
|---|
| 1139 |
|
|---|
| 1140 | /*****************************************************************************
|
|---|
| 1141 | * Name :
|
|---|
| 1142 | * Purpose :
|
|---|
| 1143 | * Parameters:
|
|---|
| 1144 | * Variables :
|
|---|
| 1145 | * Result :
|
|---|
| 1146 | * Remark : NTDLL.942
|
|---|
| 1147 | * Status :
|
|---|
| 1148 | *
|
|---|
| 1149 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 1150 | *****************************************************************************/
|
|---|
| 1151 |
|
|---|
| 1152 | wchar_t* CDECL OS2wcsncpy( wchar_t* str1,
|
|---|
| 1153 | const wchar_t* str2,
|
|---|
| 1154 | size_t i)
|
|---|
| 1155 | {
|
|---|
| 1156 | dprintf(("NTDLL: wcsncpy(%s,%s,%08xh)\n",
|
|---|
| 1157 | str1,
|
|---|
| 1158 | str2,
|
|---|
| 1159 | i));
|
|---|
| 1160 |
|
|---|
| 1161 | return (wcsncpy(str1, str2, i));
|
|---|
| 1162 | }
|
|---|
| 1163 |
|
|---|
| 1164 |
|
|---|
| 1165 | /*****************************************************************************
|
|---|
| 1166 | * Name :
|
|---|
| 1167 | * Purpose :
|
|---|
| 1168 | * Parameters:
|
|---|
| 1169 | * Variables :
|
|---|
| 1170 | * Result :
|
|---|
| 1171 | * Remark : NTDLL.943
|
|---|
| 1172 | * Status :
|
|---|
| 1173 | *
|
|---|
| 1174 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 1175 | *****************************************************************************/
|
|---|
| 1176 |
|
|---|
| 1177 | wchar_t* CDECL OS2wcspbrk(const wchar_t* str1,
|
|---|
| 1178 | const wchar_t* str2)
|
|---|
| 1179 | {
|
|---|
| 1180 | dprintf(("NTDLL: wcspbrk(%08xh,%08xh)\n",
|
|---|
| 1181 | str1,
|
|---|
| 1182 | str2));
|
|---|
| 1183 |
|
|---|
| 1184 | return (wcspbrk(str1, str2));
|
|---|
| 1185 | }
|
|---|
| 1186 |
|
|---|
| 1187 |
|
|---|
| 1188 | /*****************************************************************************
|
|---|
| 1189 | * Name :
|
|---|
| 1190 | * Purpose :
|
|---|
| 1191 | * Parameters:
|
|---|
| 1192 | * Variables :
|
|---|
| 1193 | * Result :
|
|---|
| 1194 | * Remark : NTDLL.944
|
|---|
| 1195 | * Status :
|
|---|
| 1196 | *
|
|---|
| 1197 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 1198 | *****************************************************************************/
|
|---|
| 1199 |
|
|---|
| 1200 | wchar_t* CDECL OS2wcsrchr(const wchar_t* str,
|
|---|
| 1201 | size_t i)
|
|---|
| 1202 | {
|
|---|
| 1203 | dprintf(("NTDLL: wcsrchr(%08xh,%08xh)\n",
|
|---|
| 1204 | str,
|
|---|
| 1205 | i));
|
|---|
| 1206 |
|
|---|
| 1207 | return (wcsrchr(str, i));
|
|---|
| 1208 | }
|
|---|
| 1209 |
|
|---|
| 1210 |
|
|---|
| 1211 | /*****************************************************************************
|
|---|
| 1212 | * Name :
|
|---|
| 1213 | * Purpose :
|
|---|
| 1214 | * Parameters:
|
|---|
| 1215 | * Variables :
|
|---|
| 1216 | * Result :
|
|---|
| 1217 | * Remark : NTDLL.945
|
|---|
| 1218 | * Status :
|
|---|
| 1219 | *
|
|---|
| 1220 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 1221 | *****************************************************************************/
|
|---|
| 1222 |
|
|---|
| 1223 | size_t CDECL OS2wcsspn(const wchar_t* str1,
|
|---|
| 1224 | const wchar_t* str2)
|
|---|
| 1225 | {
|
|---|
| 1226 | dprintf(("NTDLL: wcsspn(%08xh,%08xh)\n",
|
|---|
| 1227 | str1,
|
|---|
| 1228 | str2));
|
|---|
| 1229 |
|
|---|
| 1230 | return (wcsspn(str1, str2));
|
|---|
| 1231 | }
|
|---|
| 1232 |
|
|---|
| 1233 |
|
|---|
| 1234 | /*****************************************************************************
|
|---|
| 1235 | * Name :
|
|---|
| 1236 | * Purpose :
|
|---|
| 1237 | * Parameters:
|
|---|
| 1238 | * Variables :
|
|---|
| 1239 | * Result :
|
|---|
| 1240 | * Remark : NTDLL.946
|
|---|
| 1241 | * Status :
|
|---|
| 1242 | *
|
|---|
| 1243 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 1244 | *****************************************************************************/
|
|---|
| 1245 |
|
|---|
| 1246 | wchar_t* CDECL OS2wcsstr(const wchar_t* str1,
|
|---|
| 1247 | const wchar_t* str2)
|
|---|
| 1248 | {
|
|---|
| 1249 | dprintf(("NTDLL: wcsstr(%s,%s)\n",
|
|---|
| 1250 | str1,
|
|---|
| 1251 | str2));
|
|---|
| 1252 |
|
|---|
| 1253 | return (wcsstr(str1, str2));
|
|---|
| 1254 | }
|
|---|
| 1255 |
|
|---|
| 1256 |
|
|---|
| 1257 | /*****************************************************************************
|
|---|
| 1258 | * Name :
|
|---|
| 1259 | * Purpose :
|
|---|
| 1260 | * Parameters:
|
|---|
| 1261 | * Variables :
|
|---|
| 1262 | * Result :
|
|---|
| 1263 | * Remark : NTDLL.?
|
|---|
| 1264 | * Status :
|
|---|
| 1265 | *
|
|---|
| 1266 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 1267 | *****************************************************************************/
|
|---|
| 1268 |
|
|---|
| 1269 | char * CDECL OS2_itoa(int i, char *s, int r)
|
|---|
| 1270 | {
|
|---|
| 1271 | dprintf(("NTDLL: _itoa(%08xh, %08xh, %08xh)\n",
|
|---|
| 1272 | i,
|
|---|
| 1273 | s,
|
|---|
| 1274 | r));
|
|---|
| 1275 |
|
|---|
| 1276 | return (_itoa(i,s,r));
|
|---|
| 1277 | }
|
|---|
| 1278 |
|
|---|
| 1279 |
|
|---|
| 1280 | /*****************************************************************************
|
|---|
| 1281 | * Name :
|
|---|
| 1282 | * Purpose :
|
|---|
| 1283 | * Parameters:
|
|---|
| 1284 | * Variables :
|
|---|
| 1285 | * Result :
|
|---|
| 1286 | * Remark : NTDLL.?
|
|---|
| 1287 | * Status :
|
|---|
| 1288 | *
|
|---|
| 1289 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 1290 | *****************************************************************************/
|
|---|
| 1291 |
|
|---|
| 1292 | char * CDECL OS2_itow(int i, char *s, int r)
|
|---|
| 1293 | {
|
|---|
| 1294 | dprintf(("NTDLL: _itow(%08xh, %08xh, %08xh) no unicode support !\n",
|
|---|
| 1295 | i,
|
|---|
| 1296 | s,
|
|---|
| 1297 | r));
|
|---|
| 1298 |
|
|---|
| 1299 | return (_itoa(i,s,r));
|
|---|
| 1300 | }
|
|---|