Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > by-pkgid > be5d6593809ec369f8ea85fdb1d0d4e4 > files > 172

octave-3.4.2-1mdv2010.2.i586.rpm

#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; 
}