]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man/man3/strfry.3
man/, share/mk/: Move man*/ to man/
[thirdparty/man-pages.git] / man / man3 / strfry.3
CommitLineData
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
13strfry \- randomize a string
4f327eed
AC
14.SH LIBRARY
15Standard 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>
c6d039a3 21.P
fea681da
MK
22.BI "char *strfry(char *" string );
23.fi
24.SH DESCRIPTION
60a90ecd
MK
25The
26.BR strfry ()
46d8df8e
MK
27function randomizes the contents of
28.I string
32440253 29by randomly swapping characters in the string.
46d8df8e
MK
30The result is an anagram of
31.IR string .
47297adb 32.SH RETURN VALUE
60a90ecd
MK
33The
34.BR strfry ()
35functions returns a pointer to the randomized
fea681da 36string.
ce71af89
PH
37.SH ATTRIBUTES
38For an explanation of the terms used in this section, see
39.BR attributes (7).
40.TS
41allbox;
c466875e 42lbx lb lb
ce71af89
PH
43l l l.
44Interface Attribute Value
45T{
9e54434e
BR
46.na
47.nh
ce71af89
PH
48.BR strfry ()
49T} Thread safety MT-Safe
50.TE
3113c7f3 51.SH STANDARDS
4131356c 52GNU.
47297adb 53.SH SEE ALSO
0a90178c 54.BR memfrob (3),
0a4f8b7b 55.BR string (3)