- Function
Compare two strings.
- Header
- Declaration
int __fastcall__ strcmp (const char* s1, const char* s2);- Description
The
strcmpfunction compares the two strings passed as parameters. It returns a value that is less than zero ifs1is less thans2, zero ifs1is the same ass2, and a value greater than zero ifs1is greater thans2.- Limits
- The function is only available as fastcall function, so it may only be used in presence of a prototype.
- Availability
ISO 9899
- See also
- Example
None.