std-fclose


Synopsis

(std-fclose <file>)

Description

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!

Example

(if (setq f (std-fopen "xx" "w"))
  (std-fclose f))

Arguments

file: a atom of type FILE returned by open or std-fopen.

Return Value

nil on success.

Side Effects

It closes the file.

On success it removes the argument from the global *FOPEN* list.

Otherwise it throws an error.

Module

(std-require 'STDFILE)

Defined in STDFILE