Refactor strcasecmp, strncasecmp with iterators
This uses the NulTerminated
iterator to reimplement the strcasecmp
and strncasecmp
functions. Thus, the only unsafe code now used is the construction of the input iterators.
Also, the naming of the input parameters has been brought in line with that from POSIX (s1
, s2
).