SYNOPSIS
#include
char *strfry(char *string);
DESCRIPTION
The
strfry function "stir fries", as its name suggests, a string by randomly (using
rand(3)) swapping its characters. The result is, to quote the man page, "an anagram of
string".
strfry returns a pointer to the resulting string.
NOTES
The man page has this to stay about
strfry:
CONFORMING TO
The strfry() function is unique to the Linux C Library and
GNU C Library.
SEE ALSO
memfrob(3)
Using it tends to make me hungry for takeout. It also makes me think about how wonderful open source is - where else can you find such a marginally useful function with such an intriguing name?