首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C语言 >

linux平台上fpos_t结构

2012-09-12 
linux平台下fpos_t结构请问linux下fsetpos函数中参数pos如何设置?int fsetpos(FILE *stream,fpos_t pos)[

linux平台下fpos_t结构
请问linux下fsetpos函数中参数pos如何设置?
int fsetpos(FILE *stream,fpos_t pos)

[解决办法]
pos = 10; //就是流中第10字节处
 if( fsetpos( fp, &pos ) != 0 )
perror( "fsetpos error" );
[解决办法]
出错信息是什么?编译环境?
[解决办法]
printf("%s\n", strerror(errno));

热点排行