From bb22003bc0c577dbaa678607995232ddc9f8406f Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 1 Sep 2015 17:02:44 +0200 Subject: add strfry MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- include/string.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'include') 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 -- cgit v1.2.3-70-g09d2