catbuf_scan - search in buffer
#include <cat.h>
int catbuf_scan(cat_buffer *b, const void *matchbytes, int nbytes);
catbuf_scan() scans buffer b for the next occurrence of any of the bytes in matchbytes, starting at the current buffer index. nbytes
contains the number of bytes in matchbytes.
This function does not affect the current index.
Returns the offset to the next occurrence or -1 if no occurrence is found.
cat, catbuf, catbuf_match