#include <stdio.h>#include "mathlink.h"/* send an integer to a link and check for an error */void f(MLINK lp){ if(! MLPutInteger(lp, 10)) { printf("MathLink error: %s\n", MLErrorMessage(lp)); MLClearError(lp); }}