Mercurial > octave-dspies
view examples/myhello.c @ 18673:1dcc9539234c
Fix bug with input() and nargout==0 (bug #42111).
* input.cc (Finput): Call get_user_input() to produce at least 1 output.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 24 Apr 2014 14:03:46 -0700 |
parents | be41c30bcb44 |
children |
line wrap: on
line source
#include "mex.h" void mexFunction (int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { mexPrintf ("Hello, World!\n"); mexPrintf ("I have %d inputs and %d outputs\n", nrhs, nlhs); }