📄 main.c
字号:
#include<stdio.h>
#include"file_system.h"
#include"string.h"
extern unsigned char VFILE[1024*1024*4];
int main()
{
M_FILE fp;
FILE *fpoint_real;
int i;
unsigned short test_buffer[512*512];
for(i=0;i<512*512;i++)
test_buffer[i]=i;
m_format();
Sect_Init();
FileSys_Init();
mm_fopen(&fp,"test1.txt","w");
mm_fwrite(&fp,"hello",5);
m_fclose(&fp);
mm_fopen(&fp,"test2.txt","w");
mm_fwrite(&fp,"hello world",12);
m_fclose(&fp);
mm_fopen(&fp,"test3.txt","w");
mm_fwrite(&fp,"hello world2",13);
m_fclose(&fp);
//////
fpoint_real=fopen("file_test.wdk","wb");
fwrite(VFILE,1024*1024*4,1,fpoint_real);
fclose(fpoint_real);
printf("hello\n");
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -