Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > The Clib Object Buffer Methods in Siebel eScript > Clib.memcmp() MethodThis method compares the contents of two buffers or the length of two buffers. SyntaxClib.memcmp(buf1, buf2[, length])
ReturnsA 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. UsageIf 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. |
Siebel eScript Language Reference |