Older Newer
Tue, 21 Jan 2020 03:32:14 . . . . SyneRyder [Function definition]


Changes by last author:

Added:
= stricmp =

Microsoft-specific C function - not part of ANSI C

== Syntax ==

int stricmp(const char* s1, const char* s2)

== Arguments ==

:s1

::Pointer to the string to compare.

:s2

::Pointer to the string to which the first string is compared to.

== Return ==

An integer value indicating the result of the comparison - less than zero if s1 comes before s2, zero if the two strings are identical, and greater than zero if s2 comes after s1.

== Description ==

Compares two strings in a case insensitive manner. That is, both strings are converted to lowercase before comparison.

If a negative value is returned, string s1 is found to be less then s2. If zero is returned, both strings are identical. If a value positive and greater then zero is returned, string s1 is greater than s2.

Characters are compared by their order in the ASCII character map. This means numbers will be considered less then alphabetical characters.

== Comment ==

If you are writing cross-platform compatible code, note that this function is a Microsoft-specific extension in the Windows C Runtime, and not a part of the Standard C language.

== See Also ==

C Runtime Functions, strcmp, strncmp