| 1 |
'\" t |
| 2 |
.\" Copyright 1993 David Metcalfe ([email protected]) |
| 3 |
.\" |
| 4 |
.\" SPDX-License-Identifier: Linux-man-pages-copyleft |
| 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 ([email protected]) |
| 11 |
.TH strfry 3 2024-05-02 "Linux man-pages 6.9.1" |
| 12 |
.SH NAME |
| 13 |
strfry \- randomize a string |
| 14 |
.SH LIBRARY |
| 15 |
Standard C library |
| 16 |
.RI ( libc ", " \-lc ) |
| 17 |
.SH SYNOPSIS |
| 18 |
.nf |
| 19 |
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" |
| 20 |
.B #include <string.h> |
| 21 |
.P |
| 22 |
.BI "char *strfry(char *" string ); |
| 23 |
.fi |
| 24 |
.SH DESCRIPTION |
| 25 |
The |
| 26 |
.BR strfry () |
| 27 |
function randomizes the contents of |
| 28 |
.I string |
| 29 |
by randomly swapping characters in the string. |
| 30 |
The result is an anagram of |
| 31 |
.IR string . |
| 32 |
.SH RETURN VALUE |
| 33 |
The |
| 34 |
.BR strfry () |
| 35 |
functions returns a pointer to the randomized |
| 36 |
string. |
| 37 |
.SH ATTRIBUTES |
| 38 |
For an explanation of the terms used in this section, see |
| 39 |
.BR attributes (7). |
| 40 |
.TS |
| 41 |
allbox; |
| 42 |
lbx lb lb |
| 43 |
l l l. |
| 44 |
Interface Attribute Value |
| 45 |
T{ |
| 46 |
.na |
| 47 |
.nh |
| 48 |
.BR strfry () |
| 49 |
T} Thread safety MT-Safe |
| 50 |
.TE |
| 51 |
.SH STANDARDS |
| 52 |
GNU. |
| 53 |
.SH SEE ALSO |
| 54 |
.BR memfrob (3), |
| 55 |
.BR string (3) |