Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libc / argz / buf_findstr.h
blobd6cef7c15cea8930488cc8193273bb3c30297141
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.
5 */
7 #include <sys/types.h>
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);