# HG changeset patch # User Rik # Date 1439312159 25200 # Node ID 97edbce9b975166eb7362632f7925284db149b0c # Parent 8fcbb55745efb79383fb111af06a6644d4b477b4 doc: Clarify that ARCH argument to fread overrides ARCH arg to fopen. * file-io.cc (Ffread): Clarify that ARCH argument to fread overrides ARCH arg to fopen. diff --git a/libinterp/corefcn/file-io.cc b/libinterp/corefcn/file-io.cc --- a/libinterp/corefcn/file-io.cc +++ b/libinterp/corefcn/file-io.cc @@ -1609,7 +1609,12 @@ IEEE little endian.\n\ @end table\n\ \n\ +If no @var{arch} is given the value used in the call to @code{fopen} which\n\ +created the file descriptor is used. Otherwise, the value specified with\n\ +@code{fread} overrides that of @code{fopen} and determines the data format.\n\ +\n\ The output argument @var{val} contains the data read from the file.\n\ +\n\ The optional return value @var{count} contains the number of elements read.\n\ @seealso{fwrite, fgets, fgetl, fscanf, fopen}\n\ @end deftypefn")