summaryrefslogtreecommitdiffstats
path: root/newlib/libc/argz/buf_findstr.h
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/argz/buf_findstr.h')
-rw-r--r--newlib/libc/argz/buf_findstr.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/newlib/libc/argz/buf_findstr.h b/newlib/libc/argz/buf_findstr.h
new file mode 100644
index 000000000..d6cef7c15
--- /dev/null
+++ b/newlib/libc/argz/buf_findstr.h
@@ -0,0 +1,12 @@
+/* Copyright (C) 2002 by Red Hat, Incorporated. All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
+#include <sys/types.h>
+
+/* Find string str in buffer buf of length buf_len. Point buf to
+ character after string, or set it to NULL if end of buffer is
+ reached. Return 1 if found, 0 if not. */
+int _buf_findstr(const char *str, char **buf, size_t *buf_len);