strfryのヘルプ・マニュアル
日本語 英語
strfry --help
man strfry
STRFRY(3) Linux Programmer’s Manual STRFRY(3)
名前
strfry - 文字列をランダムに並べ変える
書式
#define _GNU_SOURCE
#include
char *strfry(char *string);
説明
strfry() 関数は、文字列 string の内容をランダムに並び換える。並び換えは
、 rand(3) 関数を用いて、文字列中の各文字を無作為に交換することで実現さ
れる。結果は、文字列 string のアナグラムである。
返り値
strfry() 関数は、ランダムに並び換えられた文字列へのポインタを返す。
準拠
strfry() 関数は GNU C ライブラリに特有である。
関連項目
memfrob(3), feature_test_macros(7)
GNU 1993-04-12 STRFRY(3)
STRFRY(3) Linux Programmer’s Manual STRFRY(3)
NAME
strfry - randomize a string
SYNOPSIS
#define _GNU_SOURCE
#include
char *strfry(char *string);
DESCRIPTION
The strfry() function randomizes the contents of string by using
rand(3) to randomly swap characters in the string. The result is an
anagram of string.
RETURN VALUE
The strfry() functions returns a pointer to the randomized string.
CONFORMING TO
The strfry() function is unique to the GNU C Library.
SEE ALSO
memfrob(3), feature_test_macros(7)
COLOPHON
This page is part of release 3.22 of the Linux man-pages project. A
description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
GNU 1993-04-12 STRFRY(3)