diff options
Diffstat (limited to 'ptr.h')
-rw-r--r-- | ptr.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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_ */ |