Mercurial > octave-nkf
view examples/myfunc.c @ 18174:b72bcf5f78cc stable release-3-8-0
Version 3.8.0 released.
* configure.ac (OCTAVE_VERSION): Now 3.8.0.
(OCTAVE_RELEASE_DATE): Now 2013-12-27.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 27 Dec 2013 16:59:04 -0500 |
parents | 224e76250443 |
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; }