]> git.ipfire.org Git - thirdparty/man-pages.git/blob - man3/strfry.3
f1f539ea0d154fdb456da61444fe368ee91ec897
[thirdparty/man-pages.git] / man3 / strfry.3
1 '\" t
2 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
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 (faith@cs.unc.edu)
11 .TH strfry 3 (date) "Linux man-pages (unreleased)"
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 .PP
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 .ad l
41 .nh
42 .TS
43 allbox;
44 lbx lb lb
45 l l l.
46 Interface Attribute Value
47 T{
48 .BR strfry ()
49 T} Thread safety MT-Safe
50 .TE
51 .hy
52 .ad
53 .sp 1
54 .SH STANDARDS
55 GNU.
56 .SH SEE ALSO
57 .BR memfrob (3),
58 .BR string (3)