projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
.
[gnulib.git]
/
lib
/
memrchr.c
diff --git
a/lib/memrchr.c
b/lib/memrchr.c
index
e34d65e
..
ae8dabc
100644
(file)
--- a/
lib/memrchr.c
+++ b/
lib/memrchr.c
@@
-1,7
+1,7
@@
/* memrchr -- find the last occurrence of a byte in a memory block
/* memrchr -- find the last occurrence of a byte in a memory block
- Copyright (C) 1991, 1993, 1996, 1997, 1999, 2000, 2003, 2004
Free
- Software Foundation, Inc.
+ Copyright (C) 1991, 1993, 1996, 1997, 1999, 2000, 2003, 2004
, 2005
+
Free
Software Foundation, Inc.
Based on strlen implementation by Torbjorn Granlund (tege@sics.se),
with help from Dan Sahlin (dan@sics.se) and
Based on strlen implementation by Torbjorn Granlund (tege@sics.se),
with help from Dan Sahlin (dan@sics.se) and
@@
-27,13
+27,11
@@
# include <config.h>
#endif
# include <config.h>
#endif
-#include <string.h>
-
-#include <stddef.h>
-
#if defined _LIBC
#if defined _LIBC
+# include <string.h>
# include <memcopy.h>
#else
# include <memcopy.h>
#else
+# include "memrchr.h"
# define reg_char char
#endif
# define reg_char char
#endif