diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-09-01 17:29:24 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-09-01 17:29:24 +0200 |
commit | ff2f219b6ff621c84bb57f350e73364ca5d878e6 (patch) | |
tree | 2d54117ae128dd82505a1b3d759c8f5d56f7e5d5 /include | |
parent | add strfry (diff) | |
download | slibc-ff2f219b6ff621c84bb57f350e73364ca5d878e6.tar.gz slibc-ff2f219b6ff621c84bb57f350e73364ca5d878e6.tar.bz2 slibc-ff2f219b6ff621c84bb57f350e73364ca5d878e6.tar.xz |
add memfrob
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/string.h | 14 |
1 files changed, 13 insertions, 1 deletions
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 |