Fclose
Close File
Fclose() Opcode = 62 ($3E)
W h en a p ro g ra m is finish ed w ith a file, it m u st u se th is fu n ction to clo se
th e file.
C macro format
in t h a n d le, sta tu s;
statu s = F clo se (h an d le);
Machine language format
m o v e .w h an d le , - (sp )
m o v e, w # $ 3 E , - (sp )
trap # 1
ad d q .l # 4 ,s p
Inputs
h an d le w o rd T h e file h an dle of th e file to close.
Results
DO sta tu s w o rd A 0 m e an s su cce ss, failu re is in dicated by th e ap p ro
p ria te G E M D O S erro r n u m b er.
See also
F c r e a te ( ), F o p e n ()
272