1strfry(3) Library Functions Manual strfry(3)
2
3
4
6 strfry - randomize a string
7
9 Standard C library (libc, -lc)
10
12 #define _GNU_SOURCE /* See feature_test_macros(7) */
13 #include <string.h>
14
15 char *strfry(char *string);
16
18 The strfry() function randomizes the contents of string by randomly
19 swapping characters in the string. The result is an anagram of string.
20
22 The strfry() functions returns a pointer to the randomized string.
23
25 For an explanation of the terms used in this section, see at‐
26 tributes(7).
27
28 ┌────────────────────────────────────────────┬───────────────┬─────────┐
29 │Interface │ Attribute │ Value │
30 ├────────────────────────────────────────────┼───────────────┼─────────┤
31 │strfry() │ Thread safety │ MT-Safe │
32 └────────────────────────────────────────────┴───────────────┴─────────┘
33
35 GNU.
36
38 memfrob(3), string(3)
39
40
41
42Linux man-pages 6.05 2023-07-20 strfry(3)