function st = fclose(fileID)
%MATLAB Code Generation Library Function

%   Copyright 2012-2016 The MathWorks, Inc.
%#codegen

coder.inline('always');
eml_invariant(nargin > 0,'MATLAB:minrhs');
if coder.internal.isCharOrScalarString(fileID)
    eml_invariant(strcmp(fileID,'all'), ...
        'MATLAB:badstringall_mx');
    st = double(coder.internal.fileManager('closeall'));
else
    fidCheck(fileID,mfilename);
    st = double(coder.internal.fileManager('close',fileID));
end
