aboutsummaryrefslogtreecommitdiffstats
path: root/ptr.h
diff options
context:
space:
mode:
Diffstat (limited to 'ptr.h')
-rw-r--r--ptr.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/ptr.h b/ptr.h
index a90bf63..ebdf09d 100644
--- a/ptr.h
+++ b/ptr.h
@@ -56,13 +56,16 @@ char *ptrmchrs __P ((ptr p, char *q, int lenq));
char *ptrrchrs __P ((ptr p, ptr q));
char *ptrmrchrs __P ((ptr p, char *q, int lenq));
-char *memrchr __P ((char *p, int lenp, char c));
char *memchrs __P ((char *p, int lenp, char *q, int lenq));
char *memrchrs __P ((char *p, int lenp, char *q, int lenq));
#ifdef _GNU_SOURCE
# define memfind memmem
#else
char *memfind __P ((char *hay, int haylen, char *needle, int needlelen));
+/* TODO: watch memrchr, it is defined differently here than under _GNU_SOURCE,
+ * so it could cause bizarre results if a module makes use of a library that
+ * uses it */
+char *memrchr __P ((char *p, int lenp, char c));
#endif
#endif /* _PTR_H_ */