libroot: move memmem for POSIX.1/2024

Change-Id: I1b051586c993cd0e3d43abaa22a3722699f7134e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8517
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Jérôme Duval
2024-11-04 17:55:40 +00:00
committed by waddlesplash
parent 6beff0d163
commit 8b5cc9cf52
5 changed files with 3 additions and 32 deletions
-31
View File
@@ -1,31 +0,0 @@
/*
* Copyright 2018 Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _GNU_STRING_H_
#define _GNU_STRING_H_
#include_next <string.h>
#include <features.h>
#ifdef _DEFAULT_SOURCE
#ifdef __cplusplus
extern "C" {
#endif
extern void *memmem(const void *source, size_t sourceLength,
const void *search, size_t searchLength);
#ifdef __cplusplus
}
#endif
#endif
#endif /* _GNU_STRING_H_ */
+2
View File
@@ -22,6 +22,8 @@ extern void *memcpy(void *dest, const void *source, size_t length);
extern void *memccpy(void *dest, const void *source, int stopByte, size_t length);
extern void *memmove(void *dest, const void *source, size_t length);
extern void *memset(void *dest, int value, size_t length);
extern void *memmem(const void *source, size_t sourceLength,
const void *search, size_t searchLength);
#ifdef _DEFAULT_SOURCE
extern void *memrchr(const void *source, int value, size_t length);