#include "mathlink.h"/* read a 32-bit integer from a link */void f(MLINK lp){ int data; if(! MLGetInteger32(lp, &data)) { /* unable to read an integer from lp */ } /* use the integer */}