diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-09-01 17:02:44 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-09-01 17:03:42 +0200 |
commit | bb22003bc0c577dbaa678607995232ddc9f8406f (patch) | |
tree | 06fd46785cdee480e9bfaf02baaf2b89ec304ab7 /include | |
parent | add basename and dirname (diff) | |
download | slibc-bb22003bc0c577dbaa678607995232ddc9f8406f.tar.gz slibc-bb22003bc0c577dbaa678607995232ddc9f8406f.tar.bz2 slibc-bb22003bc0c577dbaa678607995232ddc9f8406f.tar.xz |
add strfry
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/string.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/string.h b/include/string.h index c988b2e..68a0134 100644 --- a/include/string.h +++ b/include/string.h @@ -1091,6 +1091,19 @@ char* __gnu_basename(const char*) #endif +#if defined(_GNU_SOURCE) && !defined(__PORTABLE) +/** + * Shuffles all bytes in a string. + * + * This is a GNU joke extension. + * + * @param anagram An anagram of the output, will be modified. + * @retrun The string, which will `== anagram`. + */ +char* strfry(char* anagram); +#endif + + #endif |