%% Call stringToUpper Function Using Alias Name

if libisloaded('shrlibsample')
    unloadlibrary('shrlibsample')
else
    addpath(fullfile(matlabroot,'extern','examples','shrlib'))
end

%
% Create an alias name lib for library shrlibsample.

loadlibrary('shrlibsample','shrlibsample.h','alias','lib')

%
% Call function stringToUpper using the alias name.

str = 'This was a Mixed Case string';
calllib('lib','stringToUpper',str)

%
% Clean up.

unloadlibrary lib

%
% Copyright 2015 The MathWorks, Inc.