mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-27 07:31:35 +00:00
Add SetEOF
This commit is contained in:
parent
3bd859aaa3
commit
5ec06b0605
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user