mirror of https://github.com/tongzx/nt5src
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
47 lines
525 B
/*++
|
|
|
|
Copyright (c) 1993 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
crt.c
|
|
|
|
Abstract:
|
|
|
|
This file implements certain crt apis that are not present in
|
|
libcntpr.lib. This implementation is NOT multi-thread safe.
|
|
|
|
Author:
|
|
|
|
Wesley Witt (wesw) 6-Feb-1994
|
|
|
|
Environment:
|
|
|
|
User Mode
|
|
|
|
--*/
|
|
|
|
#include <nt.h>
|
|
#include <ntrtl.h>
|
|
#include <nturtl.h>
|
|
#include <windows.h>
|
|
|
|
void * __cdecl
|
|
malloc(
|
|
size_t sz
|
|
)
|
|
{
|
|
|
|
return LocalAlloc( LPTR, sz );
|
|
|
|
}
|
|
|
|
void __cdecl
|
|
free(
|
|
void * ptr
|
|
)
|
|
{
|
|
|
|
LocalFree( ptr );
|
|
|
|
}
|