Differences From Artifact [88e206959b]:
- Executable file mtt/bin/trans/m/args2arg.m — part of check-in [af3953deae] at 2021-03-01 11:39:42 on branch master — Cleanup repository after cvs2git conversion. (user: jeff@gridfinity.com, size: 832) [annotate] [blame] [check-ins using] [more...]
- Executable file mttroot/mtt/bin/trans/m/args2arg.m — part of check-in [3025d1c8ef] at 1996-12-05 09:05:34 on branch origin/master — Added strcmp test for empty args string. (user: gawthrop@users.sourceforge.net, size: 832) [annotate] [blame] [check-ins using]
To Artifact [b6ee5ada28]:
- Executable file mttroot/mtt/bin/trans/m/args2arg.m — part of check-in [71c526ef10] at 1996-12-05 10:04:02 on branch origin/unlabeled-1.2.1 — Checks for empty args string -- returns an empty arg. (user: gawthrop@users.sourceforge.net, size: 1199) [annotate] [blame] [check-ins using] [more...]
︙ | |||
24 25 26 27 28 29 30 31 | 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | + + + + + + + + + + + + + + + + + + + + + + | % %% % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Field separator if nargin<3 FS = ';'; end; arg = ''; if strcmp(args, '')==0 L = length(args); args_count = 0; for i=1:n arg_count = 0; arg = ''; if args_count == L break; end; while args_count < L args_count = args_count+1; arg_count = arg_count+1; ch = str2ch(args,args_count); if ch==FS break; end; arg = [arg ch]; end; end; end; |