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

📄 shorti.c

📁 Due to an increase in demand for and questions about direct disk access for Micrososft platforms, a
💻 C
字号:
/* demonstrate bug in watcom compiler */

#include <stdio.h>
#include <malloc.h>

int main()
{
#ifdef BUG              /* define BUG and see what happens */
unsigned short i;
#else
unsigned int i;
#endif
int __huge *buf;

    if ((buf = (int __huge *)halloc(50000L,sizeof(int))) == NULL)
        return 0;

    for (i = 0; i < 50000U; i++)
        buf[i] = i;

    printf("ok");

    return 1;
}

⌨️ 快捷键说明

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