silc_buffer_strchr
SYNOPSIS
static inline unsigned char *silc_buffer_strchr(SilcBuffer sb, int c, SilcBool first);
DESCRIPTION
Returns pointer to the occurence of the character `c' in the buffer `sb'. If the `first' is TRUE this finds the first occurene of `c', if it is FALSE this finds the last occurence of `c'. If the character is found the `sb' data area is moved to that location and its pointer is returned. The silc_buffer_data call will return the same pointer. Returns NULL if such character could not be located and the buffer remains unmodified.
This call is equivalent to strchr(), strrchr(), memchr() and memrchr() except it works with SilcBuffer.
NOTES
This searches only the data area of the buffer. Head and tail area are not searched.
The `sb' data need not be NULL terminated.