Add SetEOF

This commit is contained in:
Charles Lehner 2014-09-26 09:53:08 -04:00
parent 3bd859aaa3
commit 5ec06b0605

View File

@ -135,6 +135,16 @@ pascal OSErr GetEOF (short refNum, long *logEOF)
return err;
}
pascal OSErr SetEOF (short refNum, long logEOF)
{
OSErr err;
ParamBlockRec pb;
memset(&pb, 0, sizeof(pb));
pb.ioParam.ioRefNum = refNum;
pb.ioParam.ioMisc = (Ptr)logEOF;
return PBGetEOFSync(&pb);
}
pascal OSErr GetFPos (short refNum, long *filePos)
{
OSErr err;