Siebel eScript Language Reference > Siebel eScript Commands > Clib Object Buffer Methods in Siebel eScript >
Clib.memchr() Method
This method searches a buffer and returns the first occurrence of a specified character. Syntax
Clib.memchr(bufferVar, char[, size])
|
|
bufferVar |
A buffer, or a variable pointing to a buffer |
char |
The character to find |
size |
The amount of the buffer to search, in bytes |
Returns
Null if char is not found in bufferVar; otherwise, a buffer that begins at the first instance of char in bufferVar. Usage
This method searches bufferVar and returns the first occurrence of char. If size is not specified, the method searches the entire buffer from element 0.
|