#include "mathlink.h"
/* send the string "Hello World!" to a link */
void f(MLINK lp)
{
if(! MLPutNext(lp, MLTKSTR))
{ /* unable to put the data type to lp */ }
if(! MLPutSize(lp, strlen("Hello World!"))
{ /* unable to put the string size to lp */ }
if(! MPutData(lp, "Hello World!", strlen("Hello World!")))
{ /* Unable to put the string contents to lp */ }
}