std-fclose | ![]() |
std-fclose closes the file opened with open or std-fopen. On success it removes the closed file atom from the global list *FOPEN*. It should be used instead of close.
Note: You may not use the file atom returned by binio-fopen for std-fclose!
(if (setq f (std-fopen "xx" "w")) (std-fclose f))
file: a atom of type FILE returned by open or std-fopen.
nil on success.
It closes the file.
On success it removes the argument from the global *FOPEN* list.
Otherwise it throws an error.
(std-require 'STDFILE)
Defined in STDFILE