# mexPrintf

## Purpose

Buffered `printf` routine.

## C Synopsis

    #include "mex.h"
    void mexPrintf(format,...)
      char *format;

## Fortran Synopsis

Not available.

## Arguments

`arg1`,`arg2`...
  additional arguments, if necessary
`format`
  format string for output

## Description

This routine prints a string on the screen and in the diary, if it is in use. It provides a call-back to the standard C `printf` routine already linked inside MATLAB, and avoids linking the entire stdio library into your MEX-file. Alternatively, you can just use the standard C library call `printf`, since this is linked via a macro to `mexPrintf` in `mex.h`.

(c) Copyright 1994 by The MathWorks, Inc.