OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / draft / man3 / strfry.3
1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
2 .\"
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
6 .\"
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
11 .\"
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein.  The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
18 .\" professionally.
19 .\"
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
22 .\"
23 .\" References consulted:
24 .\"     Linux libc source code
25 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
26 .\"     386BSD man pages
27 .\" Modified Sun Jul 25 10:39:43 1993 by Rik Faith (faith@cs.unc.edu)
28 .\"
29 .\" Japanese Version Copyright (c) 1998 Akihiro Motoki all rights reserved.
30 .\" Translated Mon May 25 1998 by Akihiro Motoki <motoki@hal.t.u-tokyo.ac.jp>
31 .\"
32 .TH STRFRY 3  1993-04-12 "GNU" "Linux Programmer's Manual"
33 .\"O .SH NAME
34 .SH Ì¾Á°
35 .\"O strfry \- randomize a string
36 strfry \- Ê¸»úÎó¤ò¥é¥ó¥À¥à¤ËʤÙÊѤ¨¤ë
37 .\"O .SH SYNOPSIS
38 .SH ½ñ¼°
39 .nf
40 .B #define _GNU_SOURCE
41 .br
42 .B #include <string.h>
43 .sp
44 .BI "char *strfry(char *" string );
45 .fi
46 .\"O .SH DESCRIPTION
47 .SH ÀâÌÀ
48 .\"O The
49 .\"O .BR strfry ()
50 .\"O function randomizes the contents of \fIstring\fP by
51 .\"O using
52 .\"O .BR rand (3)
53 .\"O to randomly swap characters in the string.
54 .\"O The result is an anagram of \fIstring\fP.
55 .BR strfry ()
56 ´Ø¿ô¤Ï¡¢Ê¸»úÎó \fIstring\fP ¤ÎÆâÍƤò¥é¥ó¥À¥à¤ËʤӴ¹¤¨¤ë¡£
57 ʤӴ¹¤¨¤Ï¡¢
58 .BR rand (3)
59 ´Ø¿ô¤òÍѤ¤¤Æ¡¢Ê¸»úÎóÃæ¤Î³Æʸ»ú¤ò̵ºî°Ù¤Ë
60 ¸ò´¹¤¹¤ë¤³¤È¤Ç¼Â¸½¤µ¤ì¤ë¡£·ë²Ì¤Ï¡¢Ê¸»úÎó \fIstring\fP ¤Î¥¢¥Ê¥°¥é¥à¤Ç¤¢¤ë¡£
61 .\"O .SH "RETURN VALUE"
62 .SH ÊÖ¤êÃÍ
63 .\"O The
64 .\"O .BR strfry ()
65 .\"O functions returns a pointer to the randomized
66 .\"O string.
67 .BR strfry ()
68 ´Ø¿ô¤Ï¡¢¥é¥ó¥À¥à¤ËʤӴ¹¤¨¤é¤ì¤¿Ê¸»úÎó¤Ø¤Î¥Ý¥¤¥ó¥¿¤òÊÖ¤¹¡£
69 .\"O .SH "CONFORMING TO"
70 .SH ½àµò
71 .\"O The
72 .\"O .BR strfry ()
73 .\"O function is unique to the
74 .\"O GNU C Library.
75 .BR strfry ()
76 ´Ø¿ô¤Ï GNU C ¥é¥¤¥Ö¥é¥ê¤ËÆÃÍ­¤Ç¤¢¤ë¡£
77 .\"O .SH "SEE ALSO"
78 .SH ´ØÏ¢¹àÌÜ
79 .BR memfrob (3),
80 .BR feature_test_macros (7)