view examples/helloworld.cc @ 18957:87cba451fd5e stable

__magick_read__.cc: fix png check for image class in older GM (bug #42834).
author Carnë Draug <carandraug@octave.org>
date Thu, 24 Jul 2014 17:37:45 +0100
parents 224e76250443
children
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 ();
}