]>
Commit | Line | Data |
---|---|---|
fea681da MK |
1 | .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk) |
2 | .\" | |
5fbde956 | 3 | .\" SPDX-License-Identifier: Linux-man-pages-copyleft |
fea681da MK |
4 | .\" |
5 | .\" References consulted: | |
6 | .\" Linux libc source code | |
7 | .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) | |
8 | .\" 386BSD man pages | |
9 | .\" Modified Sun Jul 25 10:39:43 1993 by Rik Faith (faith@cs.unc.edu) | |
45186a5d | 10 | .TH STRFRY 3 2021-03-22 "Linux man-pages (unreleased)" |
fea681da MK |
11 | .SH NAME |
12 | strfry \- randomize a string | |
4f327eed AC |
13 | .SH LIBRARY |
14 | Standard C library | |
8fc3b2cf | 15 | .RI ( libc ", " \-lc ) |
fea681da MK |
16 | .SH SYNOPSIS |
17 | .nf | |
b80f966b | 18 | .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" |
fea681da | 19 | .B #include <string.h> |
68e4db0a | 20 | .PP |
fea681da MK |
21 | .BI "char *strfry(char *" string ); |
22 | .fi | |
23 | .SH DESCRIPTION | |
60a90ecd MK |
24 | The |
25 | .BR strfry () | |
46d8df8e MK |
26 | function randomizes the contents of |
27 | .I string | |
32440253 | 28 | by randomly swapping characters in the string. |
46d8df8e MK |
29 | The result is an anagram of |
30 | .IR string . | |
47297adb | 31 | .SH RETURN VALUE |
60a90ecd MK |
32 | The |
33 | .BR strfry () | |
34 | functions returns a pointer to the randomized | |
fea681da | 35 | string. |
ce71af89 PH |
36 | .SH ATTRIBUTES |
37 | For an explanation of the terms used in this section, see | |
38 | .BR attributes (7). | |
c466875e MK |
39 | .ad l |
40 | .nh | |
ce71af89 PH |
41 | .TS |
42 | allbox; | |
c466875e | 43 | lbx lb lb |
ce71af89 PH |
44 | l l l. |
45 | Interface Attribute Value | |
46 | T{ | |
47 | .BR strfry () | |
48 | T} Thread safety MT-Safe | |
49 | .TE | |
c466875e MK |
50 | .hy |
51 | .ad | |
52 | .sp 1 | |
3113c7f3 | 53 | .SH STANDARDS |
60a90ecd MK |
54 | The |
55 | .BR strfry () | |
56 | function is unique to the | |
fea681da | 57 | GNU C Library. |
47297adb | 58 | .SH SEE ALSO |
0a90178c | 59 | .BR memfrob (3), |
0a4f8b7b | 60 | .BR string (3) |