comparison src/ov-usr-fcn.cc @ 5642:2618a0750ae6

[project @ 2006-03-06 21:26:48 by jwe]
author jwe
date Mon, 06 Mar 2006 21:26:54 +0000
parents 4266ef7972b2
children a527e0f77aa5
comparison
equal deleted inserted replaced
5641:eb998631a4aa 5642:2618a0750ae6
598 Within a function, return the number of arguments passed to the function.\n\ 598 Within a function, return the number of arguments passed to the function.\n\
599 At the top level, return the number of command line arguments passed to\n\ 599 At the top level, return the number of command line arguments passed to\n\
600 Octave. If called with the optional argument @var{fcn_name}, return the\n\ 600 Octave. If called with the optional argument @var{fcn_name}, return the\n\
601 maximum number of arguments the named function can accept, or -1 if the\n\ 601 maximum number of arguments the named function can accept, or -1 if the\n\
602 function accepts a variable number of arguments.\n\ 602 function accepts a variable number of arguments.\n\
603 \n\ 603 @seealso{nargout, varargin, varargout}\n\
604 @seealso{nargout, varargin, and varargout}\n\
605 @end deftypefn") 604 @end deftypefn")
606 { 605 {
607 octave_value retval; 606 octave_value retval;
608 607
609 int nargin = args.length (); 608 int nargin = args.length ();
672 @noindent\n\ 671 @noindent\n\
673 will cause @code{nargout} to return 2 inside the function\n\ 672 will cause @code{nargout} to return 2 inside the function\n\
674 @code{f}.\n\ 673 @code{f}.\n\
675 \n\ 674 \n\
676 At the top level, @code{nargout} is undefined.\n\ 675 At the top level, @code{nargout} is undefined.\n\
677 \n\ 676 @seealso{nargin, varargin, varargout}\n\
678 @seealso{nargin, varargin, and varargout}\n\
679 @end deftypefn") 677 @end deftypefn")
680 { 678 {
681 octave_value retval; 679 octave_value retval;
682 680
683 int nargin = args.length (); 681 int nargin = args.length ();