?? strm.c
字號(hào):
/***************************************************************
* *
* Copyright(c) 2001-2005 McObject,LLC. All Right Reserved. *
* *
***************************************************************/
#include "strm.h"
int file_writer(void* stream_handle /* FILE * */, const void* from, unsigned nbytes)
{
FILE* f = (FILE*)stream_handle;
int nbs = fwrite(from, 1, nbytes, f);
return nbs;
}
int file_reader(void* stream_handle /* FILE * */, /* OUT */void* to, unsigned max_nbytes)
{
FILE* f = (FILE*)stream_handle;
int nbs = - 1;
if (to == 0)
{
return nbs;
}
nbs = fread(to, 1, max_nbytes, f);
return nbs;
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -