'frpintf' allows no FID
Carlo de Falco
carlo.defalco at gmail.com
Tue Jan 27 20:26:05 CST 2009
On 28 Jan 2009, at 01:48, bug-octave-request at octave.org wrote:
> Message: 1
> Date: Tue, 27 Jan 2009 10:50:28 -0800 (PST)
> From: Sergei Steshenko <sergstesh at yahoo.com>
> Subject: 'frpintf' allows no FID
> To: bug at octave.org
> Message-ID: <724651.67631.qm at web35201.mail.mud.yahoo.com>
> Content-Type: text/plain; charset=us-ascii
>
> Hello,
>
> here is a small session:
>
> "
> GNU Octave, version 3.0.3
> Copyright (C) 2008 John W. Eaton and others.
> This is free software; see the source code for copying conditions.
> There is ABSOLUTELY NO WARRANTY; not even for MERCHANTIBILITY or
> FITNESS FOR A PARTICULAR PURPOSE. For details, type `warranty'.
>
> Octave was configured for "i686-pc-linux-gnu".
>
> Additional information about Octave is available at http://www.octave.org
> .
>
> Please contribute if you find this software useful.
> For more information, visit http://www.octave.org/help-wanted.html
>
> Report bugs to <bug at octave.org> (but first, please read
> http://www.octave.org/bugs.html to learn how to write a helpful
> report).
>
> For information about changes from previous versions, type `news'.
>
> octave:1> help fprintf
> -- Built-in Function: fprintf (FID, TEMPLATE, ...)
> This function is just like `printf', except that the output is
> written to the stream FID instead of `stdout'.
>
> See also: printf, sprintf, fread, fscanf, fopen, fclose.
>
> fprintf is a built-in function
>
> Additional help for built-in functions and operators is
> available in the on-line version of the manual. Use the command
> `doc <topic>' to search the manual index.
>
> Help and information about Octave is also available on the WWW
> at http://www.octave.org and via the help at octave.org
> mailing list.
> octave:2> fprintf("Why ?\n");
> Why ?
> octave:3>
> "
>
> I expect 'fprintf' to fail since no FID is specified.
> Or the documentation to say otherwise.
>
> Thanks,
> Sergei.
I beleive this behaviour is for compatibility with the other brand:
>> fprintf('Why ?\n')
Why ?
>> version
ans =
7.5.0.338 (R2007b)
so the attached changeset fixes the documentation
c.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: docio.txt
Url: https://www-old.cae.wisc.edu/pipermail/bug-octave/attachments/20090128/20019f42/attachment.txt
-------------- next part --------------
More information about the Bug-octave
mailing list