view examples/myhello.c @ 18652:3647db1a37d7

NEWS entry for previous printf format changes
author John W. Eaton <jwe@octave.org>
date Wed, 16 Apr 2014 20:44:00 -0400
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);
}