?? strm.c
字號:
/***************************************************************
* *
* Copyright (c) 2001-2007 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 = (int)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 = (int)fread(to, 1, max_nbytes, f);
return nbs;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -