home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / netds / rpc / interop / midluser.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-06-12  |  754 b   |  25 lines

  1. /*************************************************************/
  2. /**                                                         **/
  3. /**                 Microsoft RPC Examples                  **/
  4. /**            OSF DCE Interop Sample Application           **/
  5. /**           Copyright(c) Microsoft Corp. 1993-1996        **/
  6. /**                                                         **/
  7. /*************************************************************/
  8.  
  9. #include <stdlib.h>
  10. #include "msg.h"
  11.  
  12. /*
  13.  * These are used in Microsoft clients and servers for stub memory allocation
  14.  */
  15.  
  16. void __RPC_FAR * __RPC_USER MIDL_user_allocate(size_t size)
  17. {
  18.     return malloc(size);
  19. }
  20.  
  21. void __RPC_USER MIDL_user_free(void __RPC_FAR *p)
  22. {
  23.     free(p);
  24. }
  25.