Mercurial > octave-nkf
annotate examples/myfunc.c @ 19654:a1d172bfcb2f gui-release
eliminate some unused variable and typedef warnings
* pr-output.cc, profiler.cc, ov-base-diag.cc, ov-perm.cc: Eliminate
unused variables and typedefs.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 23 Jan 2015 16:09:35 -0500 |
parents | 224e76250443 |
children |
rev | line source |
---|---|
6580 | 1 #include "mex.h" |
2 | |
3 void | |
16867
be41c30bcb44
Re-write documentation and all examples of dynamically linked functions.
Rik <rik@octave.org>
parents:
9932
diff
changeset
|
4 mexFunction (int nlhs, mxArray *plhs[], |
be41c30bcb44
Re-write documentation and all examples of dynamically linked functions.
Rik <rik@octave.org>
parents:
9932
diff
changeset
|
5 int nrhs, const mxArray *prhs[]) |
6580 | 6 { |
7 const char *nm; | |
16867
be41c30bcb44
Re-write documentation and all examples of dynamically linked functions.
Rik <rik@octave.org>
parents:
9932
diff
changeset
|
8 |
6580 | 9 nm = mexFunctionName (); |
6581 | 10 mexPrintf ("You called function: %s\n", nm); |
6580 | 11 if (strcmp (nm, "myfunc") == 0) |
6581 | 12 mexPrintf ("This is the principal function\n", nm); |
16867
be41c30bcb44
Re-write documentation and all examples of dynamically linked functions.
Rik <rik@octave.org>
parents:
9932
diff
changeset
|
13 |
17791
224e76250443
Use GNU style coding conventions for code in examples/
Rik <rik@octave.org>
parents:
16867
diff
changeset
|
14 return; |
6580 | 15 } |