From ff2f219b6ff621c84bb57f350e73364ca5d878e6 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 1 Sep 2015 17:29:24 +0200 Subject: add memfrob MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- include/string.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'include/string.h') diff --git a/include/string.h b/include/string.h index 68a0134..c43b41d 100644 --- a/include/string.h +++ b/include/string.h @@ -1100,7 +1100,19 @@ char* __gnu_basename(const char*) * @param anagram An anagram of the output, will be modified. * @retrun The string, which will `== anagram`. */ -char* strfry(char* anagram); +char* strfry(char*); + +/** + * Performs an inplace bitwise XOR:ing of + * a memory segment. The pattern is 00101010. + * + * This is a GNU extension. + * + * @param segment The memory segment. + * @param size The size of the memory segment. + * @return `segment` is returned + */ +char* memfrob(char*, size_t); #endif -- cgit v1.2.3-70-g09d2