1
function [a,nvars,errmsg,nextindex] = mtlb_sscanf(s,fmt,sz)
3
if lhs==4 then error('mtlb_sscanf: nextindex not implemented'),end
4
if rhs<3 then sz=%inf,end
9
//replicate the format many times to emulate Matlab format reuse
10
fmt=strcat(fmt(ones(1,50)))
16
errmsg='End of string reached before a datun has been read'
25
for k=1:nv,typ=min(typ,type(lvars(k))),end
28
if type(lvars(k))==1 then
31
a=[a;ascii(lvars(k))']
34
if size(sz,'*')<>1 then
37
if n*sz(1)>nv then a(n*sz(1))=0;end
44
if size(sz,'*')<>1 then
49
if n*sz(1)>nv then A(nv+1:n*sz(1))=ascii(' ');end