⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 big_mall.h

📁 c语言库函数!里面包含了所以c语言中的系统函数的实现及其详细说明和代码!请大家及时下载!
💻 H
字号:
/* +++Date last modified: 05-Jul-1997 */

/*
** void FAR *BigMalloc(Size_T num_elem, Size_T size_elem);
** void BigFree(void FAR *ptr);
*/

#ifndef BIG_MALL__H
#define BIG_MALL__H

#include "extkword.h"

#if (defined(MSDOS) || defined(__MSDOS__)) && !defined(__FLAT__)
 #if defined(__TURBOC__) || defined(__POWERC) || defined(__ZTC__)
  #if defined(__ZTC__)
   #include <dos.h>
  #else     /* Borland or Mix */
   #include <alloc.h>
  #endif
  typedef unsigned long Size_T;
  #define BigMalloc(i,n) (void FAR *)farmalloc((Size_T)(i)*(Size_T)(n))
  #define BigFree(p) farfree(p)
 #else                                          /* MSC, Watcom    */
  #include <malloc.h>
  #include <stddef.h>                           /* for size_t     */
  typedef size_t Size_T;
  #define BigMalloc(i,n) (void FAR *)halloc((Size_T)(i),(Size_T)(n))
  #define BigFree(p) hfree(p)
 #endif
#else
 #include <stdlib.h>
 #include <stddef.h>                            /* for size_t     */
 typedef size_t Size_T;
 #define BigMalloc(i,n) malloc((Size_T)(i)*(Size_T)(n))
 #define BigFree(p) free(p)
#endif

#endif /* BIG_MALL__H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -