Mercurial > octave-libgccjit
view examples/mycell.c @ 18922:1802dc60fb4a gui-release
shortcut_manager: clean up spaces after/before parentheses
* shortcut-manager.cc: add changes from cset 6113e0c6920b (default)
into gui-release
author | Torsten <ttl@justmail.de> |
---|---|
date | Mon, 14 Jul 2014 20:50:10 +0200 |
parents | 224e76250443 |
children |
line wrap: on
line source
#include "mex.h" void mexFunction (int nlhs, mxArray* plhs[], int nrhs, const mxArray* prhs[]) { mwSize n; mwIndex i; if (nrhs != 1 || ! mxIsCell (prhs[0])) mexErrMsgTxt ("ARG1 must be a cell"); n = mxGetNumberOfElements (prhs[0]); n = (n > nlhs ? nlhs : n); for (i = 0; i < n; i++) plhs[i] = mxDuplicateArray (mxGetCell (prhs[0], i)); }