Ref: http://www.cplusplus.com/reference/ http://jhengjyun.blogspot.com/2009/09/c-fseekftellrewind.html /* 會從指定的origin位置移動offset個位元組 origin定義: SEEK_SET,串流開始位置 SEEK_CUR,串流目前位置 SEEK_END,串流結束位置 若更改成功則傳回0值 */ int fseek(FILE *fp, long offset, int origin); /* 回傳串流目前位置,發生錯誤傳回-1 */ long ftell(FILE *stream); /* 將串流的目前位置設為該串流的開頭 */ void rewind(FILE *stream);
文章標籤
全站熱搜
創作者介紹
創作者 BB 的頭像
BB

Welkin小窩

BB 發表在 痞客邦 留言(0) 人氣(1,343)