Is the strcmpi function a standard version of the ISO standard?
3 answers
In the POSIX standard (aka, UNIX) strcasecmp()
, but it is not part of C99 / ISO-C.
Note. If you are comparing the above link eg. one for strcmp()
, you'll notice that the latter explicitly references ISO-C, while the former does not. A useful feature of OpenGroup links.
Edit: Since the language dependency was mentioned as being complex, see the link above for strcasecmp_l()
which allows you to explicitly specify the locale to be used for the conversion. Windows has it _strcmpi_l()
for this purpose, again sticking to its own naming conventions.
+9
source to share