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