1STRFRY(3) Linux Programmer's Manual STRFRY(3)
2
3
4
6 strfry - randomize a string
7
9 #define _GNU_SOURCE /* See feature_test_macros(7) */
10 #include <string.h>
11
12 char *strfry(char *string);
13
15 The strfry() function randomizes the contents of string by using
16 rand(3) to randomly swap characters in the string. The result is an
17 anagram of string.
18
20 The strfry() functions returns a pointer to the randomized string.
21
23 For an explanation of the terms used in this section, see
24 attributes(7).
25
26 ┌──────────┬───────────────┬─────────┐
27 │Interface │ Attribute │ Value │
28 ├──────────┼───────────────┼─────────┤
29 │strfry() │ Thread safety │ MT-Safe │
30 └──────────┴───────────────┴─────────┘
32 The strfry() function is unique to the GNU C Library.
33
35 memfrob(3), string(3)
36
38 This page is part of release 4.15 of the Linux man-pages project. A
39 description of the project, information about reporting bugs, and the
40 latest version of this page, can be found at
41 https://www.kernel.org/doc/man-pages/.
42
43
44
45GNU 2015-03-02 STRFRY(3)