KerMor  0.9
Model order reduction for nonlinear dynamical systems and nonlinear approximation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ppid.c
Go to the documentation of this file.
1 #include <sys/types.h>
2 #include <unistd.h>
3 #include "mex.h"
4 /*
5  * Outputs the current process ID of Matlab.
6  *
7  * @author Massimiliano Salsi (http://www.mathworks.com/matlabcentral/newsreader/author/100603)
8  *
9  * Code from http://www.mathworks.com/matlabcentral/newsreader/view_thread/164015
10  */
11 void mexFunction( int nlhs, mxArray *plhs[],
12  int nrhs, const mxArray*prhs[] )
13 {
14  plhs[0] = mxCreateDoubleScalar( getppid() );
15  return;
16 }
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
Definition: ppid.c:11