view examples/myfunc.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[])
{
  const char *nm;

  nm = mexFunctionName ();
  mexPrintf ("You called function: %s\n", nm);
  if (strcmp (nm, "myfunc") == 0)
    mexPrintf ("This is the principal function\n", nm);

  return;
}