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);

arrow
arrow
    全站熱搜

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