#include "mathlink.h"
/* send a 64-bit number to a link */
void f(MLINK lp)
{
mlint64 a;
#if ML64BIT_MATHLINK
/* this is a 64-bit compiler, use a native 64-bit number */
a = 0x6553600065535;
#else
/* this is a 32-bit compiler, mlint64 is a struct */
a.hi = 65536;
a.low = 65535;
#endif
if(! MLPutInteger64(lp, a))
{ /* unable to send the 64 bit integer to lp */ }
}