view examples/myfunc.c @ 14164:a737b3fb9c4d stable ss-3-5-92

snapshot 3.5.92 * configure.ac (AC_INIT): Version is now 3.5.92. (OCTAVE_RELEASE_DATE): Now 2012-01-06.
author John W. Eaton <jwe@octave.org>
date Fri, 06 Jan 2012 14:34:06 -0500
parents 6cb30a539481
children be41c30bcb44
line wrap: on
line source

#include "mex.h"

void
mexFunction (int nlhs, mxArray *plhs[], int nrhs, 
             const mxArray *prhs[])
{
  const char *nm;
  nm = mexFunctionName ();
  mexPrintf ("You called function: %s\n", nm);
  if (strcmp (nm, "myfunc") == 0)
    mexPrintf ("This is the principal function\n", nm);
  return; 
}