当前位置: 技术问答>linux和unix
新问题,关于大数据读写的问题Solaris 2.8下
来源: 互联网 发布时间:2015-01-28
本文导语: #include #include extern int errno; void main() { FILE *fp; unsigned int loop; int error; char buffer[1024]; memset(buffer,'a',1024); if((fp=fopen("test.dat","wb+"))==NULL) { printf("Create file failed!n"); return ; } setvbuf(...
#include
#include
extern int errno;
void main()
{
FILE *fp;
unsigned int loop;
int error;
char buffer[1024];
memset(buffer,'a',1024);
if((fp=fopen("test.dat","wb+"))==NULL)
{ printf("Create file failed!n"); return ; }
setvbuf(fp,NULL,_IONBF,0);
for(loop=0;loop
#include
extern int errno;
void main()
{
FILE *fp;
unsigned int loop;
int error;
char buffer[1024];
memset(buffer,'a',1024);
if((fp=fopen("test.dat","wb+"))==NULL)
{ printf("Create file failed!n"); return ; }
setvbuf(fp,NULL,_IONBF,0);
for(loop=0;loop