Documentation Center

  • Trial Software
  • Product Updates

libisloaded

Determine if shared library is loaded

Syntax

Description

example

tf = libisloaded(libname) returns logical 1 (true) if the shared library, libname, is loaded. Otherwise, it returns logical 0 (false).

Examples

expand all

Load Functions in Library

Load example library, shrlibsample, if it is not already loaded.

if ~libisloaded('shrlibsample')
  loadlibrary('shrlibsample')
end

Input Arguments

expand all

libname — Name of shared librarystring

Name of shared library, specified as a string. If you call loadlibrary using the alias option, then you must use the alias name for the libname argument.

Data Types: char

See Also

|

Was this topic helpful?