({{, (RefLink[LibraryFunction, paclet:ref/LibraryFunction])[ args] 
represents a function that has been loaded from a Wolfram Library.}})

OpenersNotesSection(Spacer1)Details

(RefLink[LibraryFunction, paclet:ref/LibraryFunction]) is returned by functions such as (RefLink[LibraryFunctionLoad, paclet:ref/LibraryFunctionLoad]).

A (RefLink[LibraryFunction, paclet:ref/LibraryFunction]) object can be used the same way as a pure function.

The function represented by (RefLink[LibraryFunction, paclet:ref/LibraryFunction]) runs in the same process as the Wolfram Language kernel.

The function represented by (RefLink[LibraryFunction, paclet:ref/LibraryFunction]) can share data with the Wolfram Language kernel.

Functions in libraries loaded by (RefLink[LibraryFunctionLoad, paclet:ref/LibraryFunctionLoad]) can make callbacks to the Wolfram Language.

The function represented by (RefLink[LibraryFunction, paclet:ref/LibraryFunction]) is unloaded when the Wolfram Language kernel exits.

LibraryFunctionUnload unloads a LibraryFunction so that it can no longer be used.

(RefLink[Information, paclet:ref/Information]) for a (RefLink[LibraryFunction, paclet:ref/LibraryFunction]) may include the following properties:

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Load a function from a sample library:

fun=LibraryFunctionLoad["demo", "demo_I_I",{Integer},Integer]

Call the function:

fun[10]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[LibraryFunctionLoad, paclet:ref/LibraryFunctionLoad])  ▪  (RefLink[LibraryFunctionUnload, paclet:ref/LibraryFunctionUnload])  ▪  (RefLink[FindLibrary, paclet:ref/FindLibrary])  ▪  (RefLink[Function, paclet:ref/Function])  ▪  (RefLink[Compile, paclet:ref/Compile])  ▪  (RefLink[CompiledFunction, paclet:ref/CompiledFunction])  ▪  (RefLink[Install, paclet:ref/Install])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Library Link User Guide, paclet:LibraryLink/tutorial/Overview])}, {▪(RefLinkPlain[Library Structure, paclet:LibraryLink/tutorial/LibraryStructure])}, {▪(RefLinkPlain[Interacting with the Wolfram System, paclet:LibraryLink/tutorial/InteractionWithWolframLanguage])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Wolfram LibraryLink, paclet:guide/LibraryLink])}, {▪(RefLinkPlain[C/C++ Language Interface, paclet:guide/CLanguageInterface])}, {▪(RefLinkPlain[Calling External Programs, paclet:guide/CallingExternalPrograms])}, {▪(RefLinkPlain[External Language Interfaces, paclet:guide/ExternalLanguageInterfaces])}, {▪(RefLinkPlain[External Operations, paclet:guide/ExternalOperations])}})}})