Convert K&R definitions to ANSI C
This commit is contained in:
parent
787febbd07
commit
a2161ba1b0
45 changed files with 521 additions and 1073 deletions
|
|
@ -1939,11 +1939,8 @@ void* memmem(const void* l, size_t l_len, const void* s, size_t s_len) {
|
|||
|
||||
#include <string.h>
|
||||
|
||||
/*
|
||||
* Reverse memchr()
|
||||
* Find the last occurrence of 'c' in the buffer 's' of size 'n'.
|
||||
*/
|
||||
void* memrchr(const void* s, int c, size_t n) {
|
||||
/* * Reverse memchr(void)
|
||||
{
|
||||
const unsigned char* cp;
|
||||
|
||||
if(n != 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue