char * strfry(char * string);

A function originating with Linux designed to fill the long empty string randomizing gap. Not that the world really needed string randomizing code.

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?

Log in or registerto write something here or to contact authors.