OpenersNotesSection(Spacer1)Details

MLIsLinkLoopback() returns 1 if l is a loopback link and 0 otherwise.

MLIsLinkLoopback() is declared in the MathLink header file (RefLink[mathlink.h, paclet:/ref/file/mathlink.h]).

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

#include "mathlink.h"

/* A function to close just loopback links */

void f(MLINK l)
{
	if(MLIsLinkLoopback(l))
		MLClose(l);
}