#include "mathlink.h"
/* make a copy of a link */
MLINK f(MLINK lp)
{
MLINK newlink;
int error;
newlink = MLDuplicateLink(lp, (const char *)"Duplicate 1", &error);
if(newlink
(MLINK)0 || error
MLEOK)
{ /* unable to create a copy of the link */ }
return newlink;
}