1 /* Copyright (C) 2002 by Red Hat, Incorporated. All rights reserved.
3 * Permission to use, copy, modify, and distribute this software
4 * is freely granted, provided that this notice is preserved.
9 /* Find string str in buffer buf of length buf_len. Point buf to
10 character after string, or set it to NULL if end of buffer is
11 reached. Return 1 if found, 0 if not. */
12 int _buf_findstr(const char *str
, char **buf
, size_t *buf_len
);