Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
525 B

  1. /*++
  2. Copyright (c) 1993 Microsoft Corporation
  3. Module Name:
  4. crt.c
  5. Abstract:
  6. This file implements certain crt apis that are not present in
  7. libcntpr.lib. This implementation is NOT multi-thread safe.
  8. Author:
  9. Wesley Witt (wesw) 6-Feb-1994
  10. Environment:
  11. User Mode
  12. --*/
  13. #include <nt.h>
  14. #include <ntrtl.h>
  15. #include <nturtl.h>
  16. #include <windows.h>
  17. void * __cdecl
  18. malloc(
  19. size_t sz
  20. )
  21. {
  22. return LocalAlloc( LPTR, sz );
  23. }
  24. void __cdecl
  25. free(
  26. void * ptr
  27. )
  28. {
  29. LocalFree( ptr );
  30. }