OpenersNotesSection(Spacer1)Details

The memory used by the name n must have been created by a call to (NonWLLink[WSLowLevelDeviceName, paclet:ref/c/WSLowLevelDeviceName])(NonWLLink[(), paclet:ref/c/WSLinkName]).

WSReleaseLowLevelDeviceName() is declared in the WSTP header file (RefLink[wstp.h, paclet:ref/file/wstp.h]).

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

#include "wstp.h"

int main(int argc, char **argv)
{
	WSENV env;
	WSLINK link;
	int error;
	const char *name;
	int apiResult;

	env = WSInitialize((WSEnvironmentParameter)0);
	if(env == (WSENV)0)
	{ /* Unable to create environment object */ }

	link = WSOpenArgcArgv(env, argc, argv, &error);
	if(link == (WSLINK)0 || error != WSEOK)
	{ /* Unable to create the link object */ }

	WSActivate(link);

	apiResult = WSLowLevelDeviceName(link, &name);
	if(apiResult == 0)
	{ /* Failed to retrieve low level name */ }

	/* ... */

	WSReleaseLowLevelDeviceName(link, name);		

	/* .... */

	WSClose(link);
	WSDeinitialize(env);
	return 0;
}

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(NonWLLink[WSLowLevelDeviceName, paclet:ref/c/WSLowLevelDeviceName])(NonWLLink[(), paclet:ref/c/WSLinkName]) }})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[WSTP C API Developer Guide (Mac OS X), paclet:tutorial/WSTPDeveloperGuide-MacintoshOverview])}, {▪(RefLinkPlain[WSTP C API Developer Guide (Unix and Linux), paclet:tutorial/WSTPDeveloperGuide-UnixOverview])}, {▪(RefLinkPlain[WSTP C API Developer Guide (Windows), paclet:tutorial/WSTPDeveloperGuide-WindowsOverview])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Alphabetical Listing of WSTP C Functions, paclet:guide/AlphabeticalListingOfWSTPCFunctions])}, {▪(RefLinkPlain[WSTP C Functions for Exchanging Lists, paclet:guide/WSTPCFunctionsForExchangingLists])}})}})