- Function
Compare two strings case insensitive.
- Header
- Declaration
int __fastcall__ strcasecmp (const char* s1, const char* s2);
- Description
The
strcasecmp
function compares the two strings passed as parameters without case sensitivity. It returns a value that is less than zero ifs1
is less thans2
, zero ifs1
is the same ass2
, and a value greater than zero ifs1
is greater thans2
.- Limits
- The function is only available as fastcall function, so it may only be used in presence of a prototype.
- The function is not available in strict ANSI mode.
- Availability
cc65
- See also
- Example
None.