informix
INFORMIX-ESQL/C Programmer's Manual
ESQL/C Function Library

stcmpr()

The stcmpr() function compares two null-terminated strings.

Syntax

Important: s1 is greater than s2 when s1 appears after s2 in the ASCII collation sequence.

Return Codes

=0 The two strings are identical.
<0 The first string is less than the second string.
>0 The first string is greater than the second string.

Example

This sample program is in the stcmpr.ec file in the demo directory.

Output


INFORMIX-ESQL/C Programmer's Manual, Version 9.21
Copyright © 1999, Informix Software, Inc. All rights reserved