This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Return information on functions in shared C library


libfunctions libname
m = libfunctions(libname)
m = libfunctions(libname,'-full')


libfunctions libname displays names of functions defined in C library libname. If you called loadlibrary using the alias option, then you must use the alias name for the libname argument.

m = libfunctions(libname) returns names of functions in cell array m.


m = libfunctions(libname,'-full') returns function signatures.


collapse all

Add path to examples folder.


Display functions in library.

if not(libisloaded('shrlibsample'))
Functions in library shrlibsample:

addDoubleRef              exportedDoubleValue       printExportedDoubleValue  
addMixedTypes             getListOfStrings          readEnum                  
addStructByRef            multDoubleArray           stringToUpper             
addStructFields           multDoubleRef             
allocateStruct            multiplyShort             
deallocateStruct          print2darray              

Clean up.

unloadlibrary shrlibsample

Input Arguments

collapse all

Name of shared library, specified as a character vector. Do not include the path or file extension in libname.

If you call loadlibrary using the alias option, then you must use the alias name for the libname argument.

Data Types: char

Output Arguments

collapse all

Functions names, returned as a cell array.


  • Use with libraries that are loaded using the loadlibrary function.

Introduced before R2006a