Bookshelf Home | Contents | Index | Search | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > The Clib Object >
Clib.memcmp() Method
This method compares the contents of two buffers or the length of two buffers.
Syntax
Clib.memcmp(buf1, buf2[, length])
Returns
A negative number if buf1 is less than buf2, 0 if buf1 is the same as buf2 for length bytes, a positive number if buf1 is greater than buf2.
Usage
If length is not specified, Clib.memcmp() compares the length of the two buffers. It then compares the contents up to the length of the shorter buffer. If length is specified and one of the buffers is shorter than length, comparison proceeds up to the length of the shorter buffer.
Bookshelf Home | Contents | Index | Search | PDF |
Siebel eScript Language Reference Published: 18 April 2003 |