# HG changeset patch # User jwe # Date 1141925293 0 # Node ID ab9a339fcec82ab85b5a51a0cbf2a7a5c3b44e55 # Parent f37b562ec93c5a08017a2209dc67cc6d8a0016bb [project @ 2006-03-09 17:28:13 by jwe] diff --git a/doc/conf.texi.in b/doc/conf.texi.in --- a/doc/conf.texi.in +++ b/doc/conf.texi.in @@ -2,6 +2,7 @@ @c This is part of the Octave manual. @c For copying conditions, see the file gpl.texi. +@set OCTAVE_MANUAL @set VERSION @OCTAVE_VERSION@ @set OCTAVEHOME @OCTAVE_HOME@ @set TARGETHOSTTYPE @OCTAVE_HOSTTYPE@ diff --git a/doc/liboctave/Makefile.in b/doc/liboctave/Makefile.in --- a/doc/liboctave/Makefile.in +++ b/doc/liboctave/Makefile.in @@ -46,19 +46,19 @@ .PHONY: all liboctave.info: $(TEXINFO) - -$(MAKEINFO) -I$(srcdir) -I$(srcdir)/.. $< + -$(MAKEINFO) -I.. -I$(srcdir) -I$(srcdir)/.. $< liboctave.dvi: $(TEXINFO) - -TEXINPUTS="$(srcdir):$(srcdir)/..:$(TEXINPUTS):" $(TEXI2DVI) $< + -TEXINPUTS="..:$(srcdir):$(srcdir)/..:$(TEXINPUTS):" $(TEXI2DVI) $< liboctave.ps: liboctave.dvi -dvips -o $@ $< liboctave.pdf: $(TEXINFO) - -TEXINPUTS="$(srcdir):$(srcdir)/..:$(TEXINPUTS):" $(TEXI2PDF) $< + -TEXINPUTS="..:$(srcdir):$(srcdir)/..:$(TEXINPUTS):" $(TEXI2PDF) $< HTML/index.html: $(TEXINFO) - -$(MAKEINFO) --html --ifinfo --output=HTML -I $(srcdir)/.. $< + -$(MAKEINFO) --html --ifinfo --output=HTML -I.. -I$(srcdir)/.. $< check: .PHONY: check diff --git a/src/file-io.cc b/src/file-io.cc --- a/src/file-io.cc +++ b/src/file-io.cc @@ -816,9 +816,13 @@ "-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} printf (@var{template}, @dots{})\n\ Print optional arguments under the control of the template string\n\ -@var{template} to the stream @code{stdout}.\n\ +@var{template} to the stream @code{stdout} and return the number of\n\ +characters printed.\n\ +@ifclear OCTAVE_MANUAL\n\ \n\ -Return the number of characters printed.\n\ +See the Formatted Output section of the GNU Octave manual for a\n\ +complete description of the syntax of the template string.\n\ +@end ifclear\n\ @seealso{fprintf, sprintf, scanf}\n\ @end deftypefn") { @@ -1003,6 +1007,11 @@ single scalar return value. This form is more `C-like', and also\n\ compatible with previous versions of Octave. The number of successful\n\ conversions is returned in @var{count}\n\ +@ifclear OCTAVE_MANUAL\n\ +\n\ +See the Formatted Input section of the GNU Octave manual for a\n\ +complete description of the syntax of the template string.\n\ +@end ifclear\n\ @seealso{scanf, sscanf, fread, fprintf}\n\ @end deftypefn") {