# HG changeset patch # User Jordi GutiƩrrez Hermoso # Date 1301512073 21600 # Node ID 1cfa3d9adf0ab3f4e264cf0a8e2ed874c8bdf8a2 # Parent e4a1ede4e832a03dd8acba92f7c9a72ee655320f Document the "all" parameter to fclose. diff -r e4a1ede4e832 -r 1cfa3d9adf0a src/ChangeLog --- a/src/ChangeLog Tue Mar 29 17:51:38 2011 -0700 +++ b/src/ChangeLog Wed Mar 30 13:07:53 2011 -0600 @@ -1,3 +1,7 @@ +2011-03-30 Jordi GutiƩrrez Hermoso + + * file-io.cc: Document the "all" parameter to fclose. + 2011-03-29 Ben Abbott * graphics.cc: Prevent ticks from being cropped by round-off errors diff -r e4a1ede4e832 -r 1cfa3d9adf0a src/file-io.cc --- a/src/file-io.cc Tue Mar 29 17:51:38 2011 -0700 +++ b/src/file-io.cc Wed Mar 30 13:07:53 2011 -0600 @@ -210,8 +210,10 @@ DEFUN (fclose, args, , "-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} fclose (@var{fid})\n\ +@deftypefnx {Built-in Function} {} fclose (\"all\")\n\ Close the specified file. If successful, @code{fclose} returns 0,\n\ -otherwise, it returns -1.\n\ +otherwise, it returns -1. The second form of the @code{fclose} call closes\n\ +all open files except @code{stdout}, @code{stderr}, and @code{stdin}.\n\ @seealso{fopen, fseek, ftell}\n\ @end deftypefn") {