Mercurial > hg > octave-max
view examples/myfunc.c @ 14213:a022c04f68cc
Replace to-be-deprecated strmatch occurrences with alternate code.
* strread.m, textscan.m, pkg.m: Replace to-be-deprecated strmatch occurrences
with alternate code.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Wed, 18 Jan 2012 21:14:36 -0800 |
parents | 6cb30a539481 |
children |
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; }