view examples/helloworld.cc @ 14454:2232931f2494

Return regexp output when input is a cellstr and there is no return variable assignment. regexp.cc (regexp, regexpi): Return output when nargout == 0.
author Rik <octave@nomad.inbox5.com>
date Sun, 11 Mar 2012 14:14:01 -0700
parents db1f49eaba6b
children be41c30bcb44
line wrap: on
line source

#include <octave/oct.h>

DEFUN_DLD (helloworld, args, nargout,
  "Hello World Help String")
{
  int nargin = args.length ();
  octave_stdout << "Hello World has " << nargin
        << " input arguments and "
        << nargout << " output arguments.\n";
  return octave_value_list ();
}