samer@4: function b=endswith(str,suffix) samer@4: % endswith - test to see if a string ends with a certain suffix samer@4: % samer@4: % endswith :: string ~'string to check', string ~'suffix' -> bool. samer@4: % samer@4: % returns 1 iff end of string matches suffix (case insensitive) samer@4: samer@4: if length(str)