OSDN Git Service

0d617162e364bc57c60fd2e5dadb298f9b1c3107
[linuxjm/LDP_man-pages.git] / release / man3 / strspn.3
1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
2 .\"
3 .\" %%%LICENSE_START(VERBATIM)
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
7 .\"
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
12 .\"
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein.  The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" %%%LICENSE_END
24 .\"
25 .\" References consulted:
26 .\"     Linux libc source code
27 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
28 .\"     386BSD man pages
29 .\" Modified Sat Jul 24 17:57:50 1993 by Rik Faith (faith@cs.unc.edu)
30 .\"*******************************************************************
31 .\"
32 .\" This file was generated with po4a. Translate the source file.
33 .\"
34 .\"*******************************************************************
35 .TH STRSPN 3 2012\-05\-10 "" "Linux Programmer's Manual"
36 .SH 名前
37 strspn, strcspn \- バイト集合で構成される文字列を探す
38 .SH 書式
39 .nf
40 \fB#include <string.h>\fP
41 .sp
42 \fBsize_t strspn(const char *\fP\fIs\fP\fB, const char *\fP\fIaccept\fP\fB);\fP
43 .sp
44 \fBsize_t strcspn(const char *\fP\fIs\fP\fB, const char *\fP\fIreject\fP\fB);\fP
45 .fi
46 .SH 説明
47 \fBstrspn\fP() 関数は、 \fIs\fP から、\fIaccept\fP に含まれる文字だけで
48 構成される最初の部分文字列を探し、
49 その部分の (バイト単位の) 長さを計算する。
50 .PP
51 \fBstrcspn\fP() 関数は、 \fIs\fP から、\fIreject\fP に含まれない文字だけで
52 構成される最初の部分文字列を探し、
53 その部分の (バイト単位の) 長さを計算する。
54 .SH 返り値
55 \fBstrspn\fP() 関数は、 \fIs\fP 内の、\fIaccept\fP からの文字だけで
56 構成される最初の部分文字列のバイト数を返す。
57 .PP
58 \fBstrcspn\fP() 関数は、\fIs\fP 内の、文字列 \fIreject\fP に含まれない
59 文字だけで構成される最初の部分文字列のバイト数を返す。
60 .SH 準拠
61 SVr4, 4.3BSD, C89, C99.
62 .SH 関連項目
63 \fBindex\fP(3), \fBmemchr\fP(3), \fBrindex\fP(3), \fBstrchr\fP(3), \fBstring\fP(3),
64 \fBstrpbrk\fP(3), \fBstrsep\fP(3), \fBstrstr\fP(3), \fBstrtok\fP(3), \fBwcscspn\fP(3),
65 \fBwcsspn\fP(3)
66 .SH この文書について
67 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.52 の一部
68 である。プロジェクトの説明とバグ報告に関する情報は
69 http://www.kernel.org/doc/man\-pages/ に書かれている。