Guardian C Library Calls Reference Manual

stscmp (supplementary)
3-216 128833Guardian TNS C Library Calls Reference Manual
Reference to Library Calls
stscmp (supplementary)
The stscmp function compares two strings. See “strcmp” on page 3-194 for an
equivalent ISO C Standard function.
str1_ptr
points to the first of the two strings to compare.
str2_ptr
points to the second of the two strings to compare.
Return Value
is zero if the two strings are equal, a negative value if *str1_ptr is less than
*str2_ptr, or a positive value if *str1_ptr is greater than *str2_ptr.
Usage Guidelines
If two strings are different lengths but match to the end of the shorter string, the
shorter string is considered less than the longer string.
#include <stringh>
int stscmp(char *str1_ptr, char *str2_ptr);