]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/strfry.3
All pages: Remove the 5th argument to .TH
[thirdparty/man-pages.git] / man3 / strfry.3
CommitLineData
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
12strfry \- randomize a string
4f327eed
AC
13.SH LIBRARY
14Standard 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
24The
25.BR strfry ()
46d8df8e
MK
26function randomizes the contents of
27.I string
32440253 28by randomly swapping characters in the string.
46d8df8e
MK
29The result is an anagram of
30.IR string .
47297adb 31.SH RETURN VALUE
60a90ecd
MK
32The
33.BR strfry ()
34functions returns a pointer to the randomized
fea681da 35string.
ce71af89
PH
36.SH ATTRIBUTES
37For 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
42allbox;
c466875e 43lbx lb lb
ce71af89
PH
44l l l.
45Interface Attribute Value
46T{
47.BR strfry ()
48T} Thread safety MT-Safe
49.TE
c466875e
MK
50.hy
51.ad
52.sp 1
3113c7f3 53.SH STANDARDS
60a90ecd
MK
54The
55.BR strfry ()
56function is unique to the
fea681da 57GNU C Library.
47297adb 58.SH SEE ALSO
0a90178c 59.BR memfrob (3),
0a4f8b7b 60.BR string (3)