Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

libfunctions

Return information on functions in shared library

Syntax

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

Description

libfunctions libname displays names of functions defined in 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.

example

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

Examples

collapse all

Display Functions in shrlibsample Library

Add path to examples folder.

addpath(fullfile(matlabroot,'extern','examples','shrlib'))

Display functions in library.

if not(libisloaded('shrlibsample'))
    loadlibrary('shrlibsample')
end
libfunctions('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

libname — Name of shared librarycharacter vector

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

m — Function namescell array

Functions names, returned as a cell array.

Limitations

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

Introduced before R2006a

Was this topic helpful?