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: cprintf.m
    path of file: ./repos/mpsim/lib/external/cprintf
    
    the code of the file until where you have to start completion: %CPRINTF	convert an array of any data type to a 2D character array
%
%		- converts an ND array of any MATLAB data type
%		  to a 2D character array
%		- the input may be 
    
function	par=CPRINTF_parse_chkoption(par)

% check/adjust	options
% - set		hasopt.xx of logical options xx
	for	clog=par.islog(:).'
		tlog=clog{1};
	if	par.hasopt.(tlog)
		tval=par.opt.(tlog);
		par.hasopt.(tlog)=false;
	if	~isempty(tval)				&&...
		 isscalar(tval)				&&...
		(ischar(tval)				||...
		 isnumeric(tval)			||...
		 islogical(tval))
		par.hasopt.(tlog)=tval~=0;
	end