Mercurial > octave-libgccjit
annotate examples/myhello.c @ 18964:a0c514c243f6 default tip @
maint: Use Octave coding conventions for %!test in graphics.cc.
* graphics.cc: Use Octave coding conventions for %!test in graphics.cc.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 28 Jul 2014 08:36:39 -0700 |
parents | be41c30bcb44 |
children |
rev | line source |
---|---|
5864 | 1 #include "mex.h" |
2 | |
3 void | |
16867
be41c30bcb44
Re-write documentation and all examples of dynamically linked functions.
Rik <rik@octave.org>
parents:
9053
diff
changeset
|
4 mexFunction (int nlhs, mxArray *plhs[], |
be41c30bcb44
Re-write documentation and all examples of dynamically linked functions.
Rik <rik@octave.org>
parents:
9053
diff
changeset
|
5 int nrhs, const mxArray *prhs[]) |
5864 | 6 { |
16867
be41c30bcb44
Re-write documentation and all examples of dynamically linked functions.
Rik <rik@octave.org>
parents:
9053
diff
changeset
|
7 mexPrintf ("Hello, World!\n"); |
5864 | 8 |
16867
be41c30bcb44
Re-write documentation and all examples of dynamically linked functions.
Rik <rik@octave.org>
parents:
9053
diff
changeset
|
9 mexPrintf ("I have %d inputs and %d outputs\n", nrhs, nlhs); |
5864 | 10 } |