| 1 | /* $Id: crt.cpp,v 1.6 1999-08-18 23:41:15 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.929
|
|---|
| 820 | * Status :
|
|---|
| 821 | *
|
|---|
| 822 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 823 | *****************************************************************************/
|
|---|
| 824 |
|
|---|
| 825 | int CDECL OS2toupper(int c)
|
|---|
| 826 | {
|
|---|
| 827 | dprintf(("NTDLL: toupper(%c)\n",
|
|---|
| 828 | c));
|
|---|
| 829 |
|
|---|
| 830 | return (toupper(c));
|
|---|
| 831 | }
|
|---|
| 832 |
|
|---|
| 833 |
|
|---|
| 834 | /*****************************************************************************
|
|---|
| 835 | * Name :
|
|---|
| 836 | * Purpose :
|
|---|
| 837 | * Parameters:
|
|---|
| 838 | * Variables :
|
|---|
| 839 | * Result :
|
|---|
| 840 | * Remark : NTDLL.930
|
|---|
| 841 | * Status :
|
|---|
| 842 | *
|
|---|
| 843 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 844 | *****************************************************************************/
|
|---|
| 845 |
|
|---|
| 846 | int CDECL OS2tolower(int c)
|
|---|
| 847 | {
|
|---|
| 848 | dprintf(("NTDLL: tolower(%c)\n",
|
|---|
| 849 | c));
|
|---|
| 850 |
|
|---|
| 851 | return (tolower(c));
|
|---|
| 852 | }
|
|---|
| 853 |
|
|---|
| 854 |
|
|---|
| 855 | /*****************************************************************************
|
|---|
| 856 | * Name :
|
|---|
| 857 | * Purpose :
|
|---|
| 858 | * Parameters:
|
|---|
| 859 | * Variables :
|
|---|
| 860 | * Result :
|
|---|
| 861 | * Remark : NTDLL.931
|
|---|
| 862 | * Status :
|
|---|
| 863 | *
|
|---|
| 864 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 865 | *****************************************************************************/
|
|---|
| 866 |
|
|---|
| 867 | int CDECL OS2towupper(int c)
|
|---|
| 868 | {
|
|---|
| 869 | dprintf(("NTDLL: towupper(%c)\n",
|
|---|
| 870 | c));
|
|---|
| 871 |
|
|---|
| 872 | return (towupper(c));
|
|---|
| 873 | }
|
|---|
| 874 |
|
|---|
| 875 |
|
|---|
| 876 | /*****************************************************************************
|
|---|
| 877 | * Name :
|
|---|
| 878 | * Purpose :
|
|---|
| 879 | * Parameters:
|
|---|
| 880 | * Variables :
|
|---|
| 881 | * Result :
|
|---|
| 882 | * Remark : NTDLL.932
|
|---|
| 883 | * Status :
|
|---|
| 884 | *
|
|---|
| 885 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 886 | *****************************************************************************/
|
|---|
| 887 |
|
|---|
| 888 | int CDECL OS2towlower(int c)
|
|---|
| 889 | {
|
|---|
| 890 | dprintf(("NTDLL: towlower(%c)\n",
|
|---|
| 891 | c));
|
|---|
| 892 |
|
|---|
| 893 | return (towlower(c));
|
|---|
| 894 | }
|
|---|
| 895 |
|
|---|
| 896 |
|
|---|
| 897 |
|
|---|
| 898 | /*****************************************************************************
|
|---|
| 899 | * Name :
|
|---|
| 900 | * Purpose :
|
|---|
| 901 | * Parameters:
|
|---|
| 902 | * Variables :
|
|---|
| 903 | * Result :
|
|---|
| 904 | * Remark : NTDLL.934
|
|---|
| 905 | * Status :
|
|---|
| 906 | *
|
|---|
| 907 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 908 | *****************************************************************************/
|
|---|
| 909 |
|
|---|
| 910 | wchar_t* CDECL OS2wcscat( wchar_t* str1,
|
|---|
| 911 | const wchar_t* str2)
|
|---|
| 912 | {
|
|---|
| 913 | dprintf(("NTDLL: wcscat(%08xh,%08xh)\n",
|
|---|
| 914 | str1,
|
|---|
| 915 | str2));
|
|---|
| 916 |
|
|---|
| 917 | return (wcscat(str1, str2));
|
|---|
| 918 | }
|
|---|
| 919 |
|
|---|
| 920 |
|
|---|
| 921 | /*****************************************************************************
|
|---|
| 922 | * Name :
|
|---|
| 923 | * Purpose :
|
|---|
| 924 | * Parameters:
|
|---|
| 925 | * Variables :
|
|---|
| 926 | * Result :
|
|---|
| 927 | * Remark : NTDLL.935
|
|---|
| 928 | * Status :
|
|---|
| 929 | *
|
|---|
| 930 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 931 | *****************************************************************************/
|
|---|
| 932 |
|
|---|
| 933 | wchar_t* CDECL OS2wcschr(const wchar_t* str,
|
|---|
| 934 | int i)
|
|---|
| 935 | {
|
|---|
| 936 | dprintf(("NTDLL: wcschr(%08xh,%08xh)\n",
|
|---|
| 937 | str,
|
|---|
| 938 | i));
|
|---|
| 939 |
|
|---|
| 940 | return (wcschr(str, i));
|
|---|
| 941 | }
|
|---|
| 942 |
|
|---|
| 943 |
|
|---|
| 944 | /*****************************************************************************
|
|---|
| 945 | * Name :
|
|---|
| 946 | * Purpose :
|
|---|
| 947 | * Parameters:
|
|---|
| 948 | * Variables :
|
|---|
| 949 | * Result :
|
|---|
| 950 | * Remark : NTDLL.936
|
|---|
| 951 | * Status :
|
|---|
| 952 | *
|
|---|
| 953 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 954 | *****************************************************************************/
|
|---|
| 955 |
|
|---|
| 956 | int CDECL OS2wcscmp(const wchar_t* str1,
|
|---|
| 957 | const wchar_t* str2)
|
|---|
| 958 | {
|
|---|
| 959 | dprintf(("NTDLL: wcscmp(%08xh,%08xh)\n",
|
|---|
| 960 | str1,
|
|---|
| 961 | str2));
|
|---|
| 962 |
|
|---|
| 963 | return (wcscmp(str1, str2));
|
|---|
| 964 | }
|
|---|
| 965 |
|
|---|
| 966 |
|
|---|
| 967 | /*****************************************************************************
|
|---|
| 968 | * Name :
|
|---|
| 969 | * Purpose :
|
|---|
| 970 | * Parameters:
|
|---|
| 971 | * Variables :
|
|---|
| 972 | * Result :
|
|---|
| 973 | * Remark : NTDLL.937
|
|---|
| 974 | * Status :
|
|---|
| 975 | *
|
|---|
| 976 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 977 | *****************************************************************************/
|
|---|
| 978 |
|
|---|
| 979 | wchar_t* CDECL OS2wcscpy( wchar_t* str1,
|
|---|
| 980 | const wchar_t* str2)
|
|---|
| 981 | {
|
|---|
| 982 | dprintf(("NTDLL: wcscpy(%08xh,%08xh)\n",
|
|---|
| 983 | str1,
|
|---|
| 984 | str2));
|
|---|
| 985 |
|
|---|
| 986 | return (wcscpy(str1, str2));
|
|---|
| 987 | }
|
|---|
| 988 |
|
|---|
| 989 |
|
|---|
| 990 | /*****************************************************************************
|
|---|
| 991 | * Name :
|
|---|
| 992 | * Purpose :
|
|---|
| 993 | * Parameters:
|
|---|
| 994 | * Variables :
|
|---|
| 995 | * Result :
|
|---|
| 996 | * Remark : NTDLL.938
|
|---|
| 997 | * Status :
|
|---|
| 998 | *
|
|---|
| 999 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 1000 | *****************************************************************************/
|
|---|
| 1001 |
|
|---|
| 1002 | size_t CDECL OS2wcscspn(const wchar_t* str1,
|
|---|
| 1003 | wchar_t* str2)
|
|---|
| 1004 | {
|
|---|
| 1005 | dprintf(("NTDLL: wcscspn(%08xh,%08xh)\n",
|
|---|
| 1006 | str1,
|
|---|
| 1007 | str2));
|
|---|
| 1008 |
|
|---|
| 1009 | return (wcscspn(str1, str2));
|
|---|
| 1010 | }
|
|---|
| 1011 |
|
|---|
| 1012 |
|
|---|
| 1013 | /*****************************************************************************
|
|---|
| 1014 | * Name :
|
|---|
| 1015 | * Purpose :
|
|---|
| 1016 | * Parameters:
|
|---|
| 1017 | * Variables :
|
|---|
| 1018 | * Result :
|
|---|
| 1019 | * Remark : NTDLL.939
|
|---|
| 1020 | * Status :
|
|---|
| 1021 | *
|
|---|
| 1022 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 1023 | *****************************************************************************/
|
|---|
| 1024 |
|
|---|
| 1025 | size_t CDECL OS2wcslen(const wchar_t* str)
|
|---|
| 1026 | {
|
|---|
| 1027 | dprintf(("NTDLL: wcslen(%08xh)\n",
|
|---|
| 1028 | str));
|
|---|
| 1029 |
|
|---|
| 1030 | return (wcslen(str));
|
|---|
| 1031 | }
|
|---|
| 1032 |
|
|---|
| 1033 |
|
|---|
| 1034 | /*****************************************************************************
|
|---|
| 1035 | * Name :
|
|---|
| 1036 | * Purpose :
|
|---|
| 1037 | * Parameters:
|
|---|
| 1038 | * Variables :
|
|---|
| 1039 | * Result :
|
|---|
| 1040 | * Remark : NTDLL.940
|
|---|
| 1041 | * Status :
|
|---|
| 1042 | *
|
|---|
| 1043 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 1044 | *****************************************************************************/
|
|---|
| 1045 |
|
|---|
| 1046 | wchar_t* CDECL OS2wcsncat( wchar_t* str1,
|
|---|
| 1047 | const wchar_t* str2,
|
|---|
| 1048 | size_t i)
|
|---|
| 1049 | {
|
|---|
| 1050 | dprintf(("NTDLL: wcsncat(%08xh,%08xh,%08xh)\n",
|
|---|
| 1051 | str1,
|
|---|
| 1052 | str2,
|
|---|
| 1053 | i));
|
|---|
| 1054 |
|
|---|
| 1055 | return (wcsncat(str1, str2, i));
|
|---|
| 1056 | }
|
|---|
| 1057 |
|
|---|
| 1058 |
|
|---|
| 1059 | /*****************************************************************************
|
|---|
| 1060 | * Name :
|
|---|
| 1061 | * Purpose :
|
|---|
| 1062 | * Parameters:
|
|---|
| 1063 | * Variables :
|
|---|
| 1064 | * Result :
|
|---|
| 1065 | * Remark : NTDLL.941
|
|---|
| 1066 | * Status :
|
|---|
| 1067 | *
|
|---|
| 1068 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 1069 | *****************************************************************************/
|
|---|
| 1070 |
|
|---|
| 1071 | int CDECL OS2wcsncmp(const wchar_t* str1,
|
|---|
| 1072 | const wchar_t* str2,
|
|---|
| 1073 | size_t i)
|
|---|
| 1074 | {
|
|---|
| 1075 | dprintf(("NTDLL: wcsncmp(%08xh,%08xh,%08xh)\n",
|
|---|
| 1076 | str1,
|
|---|
| 1077 | str2,
|
|---|
| 1078 | i));
|
|---|
| 1079 |
|
|---|
| 1080 | return (wcsncmp(str1, str2, i));
|
|---|
| 1081 | }
|
|---|
| 1082 |
|
|---|
| 1083 |
|
|---|
| 1084 | /*****************************************************************************
|
|---|
| 1085 | * Name :
|
|---|
| 1086 | * Purpose :
|
|---|
| 1087 | * Parameters:
|
|---|
| 1088 | * Variables :
|
|---|
| 1089 | * Result :
|
|---|
| 1090 | * Remark : NTDLL.942
|
|---|
| 1091 | * Status :
|
|---|
| 1092 | *
|
|---|
| 1093 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 1094 | *****************************************************************************/
|
|---|
| 1095 |
|
|---|
| 1096 | wchar_t* CDECL OS2wcsncpy( wchar_t* str1,
|
|---|
| 1097 | const wchar_t* str2,
|
|---|
| 1098 | size_t i)
|
|---|
| 1099 | {
|
|---|
| 1100 | dprintf(("NTDLL: wcsncpy(%s,%s,%08xh)\n",
|
|---|
| 1101 | str1,
|
|---|
| 1102 | str2,
|
|---|
| 1103 | i));
|
|---|
| 1104 |
|
|---|
| 1105 | return (wcsncpy(str1, str2, i));
|
|---|
| 1106 | }
|
|---|
| 1107 |
|
|---|
| 1108 |
|
|---|
| 1109 | /*****************************************************************************
|
|---|
| 1110 | * Name :
|
|---|
| 1111 | * Purpose :
|
|---|
| 1112 | * Parameters:
|
|---|
| 1113 | * Variables :
|
|---|
| 1114 | * Result :
|
|---|
| 1115 | * Remark : NTDLL.943
|
|---|
| 1116 | * Status :
|
|---|
| 1117 | *
|
|---|
| 1118 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 1119 | *****************************************************************************/
|
|---|
| 1120 |
|
|---|
| 1121 | wchar_t* CDECL OS2wcspbrk(const wchar_t* str1,
|
|---|
| 1122 | const wchar_t* str2)
|
|---|
| 1123 | {
|
|---|
| 1124 | dprintf(("NTDLL: wcspbrk(%08xh,%08xh)\n",
|
|---|
| 1125 | str1,
|
|---|
| 1126 | str2));
|
|---|
| 1127 |
|
|---|
| 1128 | return (wcspbrk(str1, str2));
|
|---|
| 1129 | }
|
|---|
| 1130 |
|
|---|
| 1131 |
|
|---|
| 1132 | /*****************************************************************************
|
|---|
| 1133 | * Name :
|
|---|
| 1134 | * Purpose :
|
|---|
| 1135 | * Parameters:
|
|---|
| 1136 | * Variables :
|
|---|
| 1137 | * Result :
|
|---|
| 1138 | * Remark : NTDLL.944
|
|---|
| 1139 | * Status :
|
|---|
| 1140 | *
|
|---|
| 1141 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 1142 | *****************************************************************************/
|
|---|
| 1143 |
|
|---|
| 1144 | wchar_t* CDECL OS2wcsrchr(const wchar_t* str,
|
|---|
| 1145 | size_t i)
|
|---|
| 1146 | {
|
|---|
| 1147 | dprintf(("NTDLL: wcsrchr(%08xh,%08xh)\n",
|
|---|
| 1148 | str,
|
|---|
| 1149 | i));
|
|---|
| 1150 |
|
|---|
| 1151 | return (wcsrchr(str, i));
|
|---|
| 1152 | }
|
|---|
| 1153 |
|
|---|
| 1154 |
|
|---|
| 1155 | /*****************************************************************************
|
|---|
| 1156 | * Name :
|
|---|
| 1157 | * Purpose :
|
|---|
| 1158 | * Parameters:
|
|---|
| 1159 | * Variables :
|
|---|
| 1160 | * Result :
|
|---|
| 1161 | * Remark : NTDLL.945
|
|---|
| 1162 | * Status :
|
|---|
| 1163 | *
|
|---|
| 1164 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 1165 | *****************************************************************************/
|
|---|
| 1166 |
|
|---|
| 1167 | size_t CDECL OS2wcsspn(const wchar_t* str1,
|
|---|
| 1168 | const wchar_t* str2)
|
|---|
| 1169 | {
|
|---|
| 1170 | dprintf(("NTDLL: wcsspn(%08xh,%08xh)\n",
|
|---|
| 1171 | str1,
|
|---|
| 1172 | str2));
|
|---|
| 1173 |
|
|---|
| 1174 | return (wcsspn(str1, str2));
|
|---|
| 1175 | }
|
|---|
| 1176 |
|
|---|
| 1177 |
|
|---|
| 1178 | /*****************************************************************************
|
|---|
| 1179 | * Name :
|
|---|
| 1180 | * Purpose :
|
|---|
| 1181 | * Parameters:
|
|---|
| 1182 | * Variables :
|
|---|
| 1183 | * Result :
|
|---|
| 1184 | * Remark : NTDLL.946
|
|---|
| 1185 | * Status :
|
|---|
| 1186 | *
|
|---|
| 1187 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 1188 | *****************************************************************************/
|
|---|
| 1189 |
|
|---|
| 1190 | wchar_t* CDECL OS2wcsstr(const wchar_t* str1,
|
|---|
| 1191 | const wchar_t* str2)
|
|---|
| 1192 | {
|
|---|
| 1193 | dprintf(("NTDLL: wcsstr(%s,%s)\n",
|
|---|
| 1194 | str1,
|
|---|
| 1195 | str2));
|
|---|
| 1196 |
|
|---|
| 1197 | return (wcsstr(str1, str2));
|
|---|
| 1198 | }
|
|---|
| 1199 |
|
|---|
| 1200 |
|
|---|
| 1201 | /*****************************************************************************
|
|---|
| 1202 | * Name :
|
|---|
| 1203 | * Purpose :
|
|---|
| 1204 | * Parameters:
|
|---|
| 1205 | * Variables :
|
|---|
| 1206 | * Result :
|
|---|
| 1207 | * Remark : NTDLL.?
|
|---|
| 1208 | * Status :
|
|---|
| 1209 | *
|
|---|
| 1210 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 1211 | *****************************************************************************/
|
|---|
| 1212 |
|
|---|
| 1213 | char * CDECL OS2_itoa(int i, char *s, int r)
|
|---|
| 1214 | {
|
|---|
| 1215 | dprintf(("NTDLL: _itoa(%08xh, %08xh, %08xh)\n",
|
|---|
| 1216 | i,
|
|---|
| 1217 | s,
|
|---|
| 1218 | r));
|
|---|
| 1219 |
|
|---|
| 1220 | return (_itoa(i,s,r));
|
|---|
| 1221 | }
|
|---|
| 1222 |
|
|---|
| 1223 |
|
|---|
| 1224 | /*****************************************************************************
|
|---|
| 1225 | * Name :
|
|---|
| 1226 | * Purpose :
|
|---|
| 1227 | * Parameters:
|
|---|
| 1228 | * Variables :
|
|---|
| 1229 | * Result :
|
|---|
| 1230 | * Remark : NTDLL.?
|
|---|
| 1231 | * Status :
|
|---|
| 1232 | *
|
|---|
| 1233 | * Author : Patrick Haller [Thu, 1999/06/22 20:44]
|
|---|
| 1234 | *****************************************************************************/
|
|---|
| 1235 |
|
|---|
| 1236 | char * CDECL OS2_itow(int i, char *s, int r)
|
|---|
| 1237 | {
|
|---|
| 1238 | dprintf(("NTDLL: _itow(%08xh, %08xh, %08xh) no unicode support !\n",
|
|---|
| 1239 | i,
|
|---|
| 1240 | s,
|
|---|
| 1241 | r));
|
|---|
| 1242 |
|
|---|
| 1243 | return (_itoa(i,s,r));
|
|---|
| 1244 | }
|
|---|