You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: CEDS64MaskReset.m
    path of file: ./repos/PsPM/src/Import/CEDS64ML
    
    the code of the file until where you have to start completion: %{
    Copyright (C) Cambridge Electronic Design Limited 2014
    Author: James Thompson
    Web: www.ced.co.uk email: james@ced.co.uk
    
function [ iOk ] = CEDS64MaskReset( maskh )
%CEDS64MASKRESET Resets the mask codes
%   [ iOk ] = CEDS64MaskReset( {maskh} )
%   Input
%   maskh -  (Optional) An integer handle to a mask. If omitted the function
%   resets ALL masks
%   Output
%   iOk - 0 if the mask was reset, otherwise a negative error code.

if (nargin < 1)
    iOk = calllib('ceds64int', 'S64ResetAllMasks');
else
    iOk = calllib('ceds64int', 'S64ResetMask', maskh);
end