Mercurial > hg > octave-nkf
comparison examples/myfeval.c @ 17791:224e76250443
Use GNU style coding conventions for code in examples/
* examples/embedded.cc, examples/fortdemo.cc, examples/helloworld.cc,
examples/make_int.cc, examples/mycell.c, examples/myfeval.c, examples/myfunc.c,
examples/mypow2.c, examples/myprop.c, examples/myset.c, examples/mystring.c,
examples/mystruct.c, examples/oct_demo.cc, examples/oregonator.cc:
Use GNU style coding conventions for code in examples/
author | Rik <rik@octave.org> |
---|---|
date | Tue, 29 Oct 2013 10:28:39 -0700 |
parents | be41c30bcb44 |
children | d1e16bdb3958 |
comparison
equal
deleted
inserted
replaced
17790:86c6ae5f969e | 17791:224e76250443 |
---|---|
8 | 8 |
9 mexPrintf ("Hello, World!\n"); | 9 mexPrintf ("Hello, World!\n"); |
10 | 10 |
11 mexPrintf ("I have %d inputs and %d outputs\n", nrhs, nlhs); | 11 mexPrintf ("I have %d inputs and %d outputs\n", nrhs, nlhs); |
12 | 12 |
13 if (nrhs < 1 || ! mxIsString (prhs[0])) | 13 if (nrhs < 1 || ! mxIsString (prhs[0])) |
14 mexErrMsgTxt ("ARG1 must be a function name"); | 14 mexErrMsgTxt ("ARG1 must be a function name"); |
15 | 15 |
16 str = mxArrayToString (prhs[0]); | 16 str = mxArrayToString (prhs[0]); |
17 | 17 |
18 mexPrintf ("I'm going to call the function %s\n", str); | 18 mexPrintf ("I'm going to call the function %s\n", str); |