Siebel eScript Language Reference > Siebel eScript Commands > The Clib Object >

Clib.memchr() Method


This method searches a buffer and returns the first occurrence of a specified character.

Syntax

Clib.memchr(bufferVar, char[, size])

Parameter
Description
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.


 Siebel eScript Language Reference 
 Published: 18 April 2003