]> git.ipfire.org Git - thirdparty/man-pages.git/blob - man3/strfry.3
Many pages: Use correct letter case in page titles (TH)
[thirdparty/man-pages.git] / man3 / strfry.3
1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
2 .\"
3 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
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)
10 .TH strfry 3 (date) "Linux man-pages (unreleased)"
11 .SH NAME
12 strfry \- randomize a string
13 .SH LIBRARY
14 Standard C library
15 .RI ( libc ", " \-lc )
16 .SH SYNOPSIS
17 .nf
18 .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
19 .B #include <string.h>
20 .PP
21 .BI "char *strfry(char *" string );
22 .fi
23 .SH DESCRIPTION
24 The
25 .BR strfry ()
26 function randomizes the contents of
27 .I string
28 by randomly swapping characters in the string.
29 The result is an anagram of
30 .IR string .
31 .SH RETURN VALUE
32 The
33 .BR strfry ()
34 functions returns a pointer to the randomized
35 string.
36 .SH ATTRIBUTES
37 For an explanation of the terms used in this section, see
38 .BR attributes (7).
39 .ad l
40 .nh
41 .TS
42 allbox;
43 lbx lb lb
44 l l l.
45 Interface Attribute Value
46 T{
47 .BR strfry ()
48 T} Thread safety MT-Safe
49 .TE
50 .hy
51 .ad
52 .sp 1
53 .SH STANDARDS
54 The
55 .BR strfry ()
56 function is unique to the
57 GNU C Library.
58 .SH SEE ALSO
59 .BR memfrob (3),
60 .BR string (3)