If the comparison is "val < cmpN", the example:
first_matching_cmp(10,5,"small",10,"middle",15,"la rge","giant")
should return "large", not "middle", since 10 < 10 is not true.
(EDIT: what the...? Why does "large" appear as "la rge" in my post? I even typed the whole line, so no weird characters there)
Last edited by Jellby; 05-09-2014 at 03:55 PM.
|