# HG changeset patch # User jwe # Date 1177540522 0 # Node ID 1a414f6706359939006a79240e0cacff52bb8ab8 # Parent d2bb3b8a8d20d42189b169a4ff010a888f6b7e22 [project @ 2007-04-25 22:34:52 by jwe] diff --git a/examples/myfunc.c b/examples/myfunc.c --- a/examples/myfunc.c +++ b/examples/myfunc.c @@ -5,8 +5,8 @@ { const char *nm; nm = mexFunctionName (); - mexPrintf("You called function: %s\n", nm); + mexPrintf ("You called function: %s\n", nm); if (strcmp (nm, "myfunc") == 0) - mexPrintf("This is the principal function\n", nm); + mexPrintf ("This is the principal function\n", nm); return; } diff --git a/examples/mystruct.c b/examples/mystruct.c --- a/examples/mystruct.c +++ b/examples/mystruct.c @@ -11,12 +11,12 @@ mexErrMsgTxt ("expects struct"); for (i = 0; i < mxGetNumberOfFields (prhs[0]); i++) - for (j=0; j < mxGetNumberOfElements(prhs[0]); j++) + for (j = 0; j < mxGetNumberOfElements (prhs[0]); j++) { mexPrintf ("field %s(%d) = ", mxGetFieldNameByNumber (prhs[0], i), j); v = mxGetFieldByNumber (prhs[0], j, i); - mexCallMATLAB(0, 0, 1, &v, "disp"); + mexCallMATLAB (0, 0, 1, &v, "disp"); } v = mxCreateStructMatrix (2, 2, 2, keys);