Mercurial > hg > octave-lyh
view examples/myfunc.c @ 17458:43e0b711d7e0
doc: Correct accidental capitalization @var{Z} in mesh/surf docstrings.
* scripts/plot/mesh.m, scripts/plot/meshc.m, scripts/plot/meshz.m,
scripts/plot/surf.m, scripts/plot/surfc.m, scripts/plot/waterfall.m:
Correct accidental capitalization @var{Z} in mesh/surf docstrings.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 19 Sep 2013 15:22:26 -0700 |
parents | be41c30bcb44 |
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; }