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