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

📄 funtc68b.dat

📁 这是一个包含多个语言的指令集
💻 DAT
字号:
read

#include <stdio.h>
#include <io.h>
#include <alloc.h>
#include <fcntl.h>
#include <process.h>
#include <sys\stat.h>
int main(void)
{
    void *buf;
    int handle, bytes;
    buf = malloc(10);
    if ((handle=open("TEST.$$$", O_RDONLY | O_BINARY, S_IWRITE | S_IREAD)) == -1)
    {
        printf("Error Opening File");
        exit(1);
    }
    if ((bytes = read(handle, buf, 10)) == -1)
    {
        printf("Read Failed.");
    exit(1);
    }
    else
        printf("Read: %d bytes read.", bytes);
    return 0;
}

⌨️ 快捷键说明

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