Mercurial > octave-antonio
diff scripts/testfun/rundemos.m @ 14214:2fe0f5fa8cc3
Replace to-be-deprecated findstr occurrences with strfind.
* help.m, textread.m, textscan.m, pkg.m, legend.m, __ezplot__.m,
__go_draw_axes__.m, rundemos.m: Replace to-be-deprecated findstr occurrences
with strfind.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Wed, 18 Jan 2012 21:15:42 -0800 |
parents | 72c96de7a403 |
children | 11949c9795a0 |
line wrap: on
line diff
--- a/scripts/testfun/rundemos.m Wed Jan 18 21:14:36 2012 -0800 +++ b/scripts/testfun/rundemos.m Wed Jan 18 21:15:42 2012 -0800 @@ -82,8 +82,9 @@ else str = fscanf (fid, "%s"); fclose (fid); - retval = findstr (str, "%!demo"); + retval = strfind (str, "%!demo"); endif endfunction + %!error rundemos ("foo", 1);