File: strverscmp.3

package info (click to toggle)
manpages-ja 0.5.0.0.20100315-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 21,156 kB
  • ctags: 1
  • sloc: sh: 13,935; perl: 157; makefile: 114
file content (101 lines) | stat: -rw-r--r-- 3,439 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
.\" Copyright (C) 2001 Andries Brouwer <aeb@cwi.nl>
.\"
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Permission is granted to copy and distribute modified versions of this
.\" manual under the conditions for verbatim copying, provided that the
.\" entire resulting derived work is distributed under the terms of a
.\" permission notice identical to this one.
.\"
.\" Since the Linux kernel and libraries are constantly changing, this
.\" manual page may be incorrect or out-of-date.  The author(s) assume no
.\" responsibility for errors or omissions, or for damages resulting from
.\" the use of the information contained herein.  The author(s) may not
.\" have taken the same level of care in the production of this manual,
.\" which is licensed free of charge, as they might when working
.\" professionally.
.\"
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
.\"
.\" Japanese Version Copyright (c) 2002 Akihiro MOTOKI
.\"         all rights reserved.
.\" Translated Sat Sep 21 08:34:42 2002
.\"         by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
.\"
.TH STRVERSCMP 3  2001-12-19 "GNU" "Linux Programmer's Manual"
.SH ̾
strverscmp \- 2ĤΥСʸӤ
.SH 
.nf
.B #define _GNU_SOURCE
.br
.B #include <string.h>
.sp
.BI "int strverscmp(const char *" s1 ", const char *" s2 );
.fi
.SH 
.IR jan1 ", " jan2 ", ..., " jan9 ", " jan10 ", ..."
Ȥä̾Υե뤬Ϥ褯뤬
.BR ls (1)
¹ԤȤ
.IR jan1 ", " jan10 ", ..., " jan2 ", ..., " jan9
ν֤ɽΤˤϰ´롣
.\" ޤǤβˡ: "rename jan jan0 jan?"
뤿ˡGNU 
.BR ls (1)

.I \-v
ץƳ
εǽ
.BR versionsort (3)
ȤäƼƤ뤬
.BR strverscmp ()
ѤƤ롣

Τ褦
.BR strverscmp ()
ܤ2ĤʸӤơ׽õȤǤ롣
Ф
.BR strcmp (3)
ϼӤ̤֤Ǥ롣
ؿ
.BR strverscmp ()
ϥΥƥǤ
.B LC_COLLATE
Ѥʤ
ΤȤ顢δؿ˥ʸʸ
ꤷƤ뤳Ȥʬ롣

δؿưϰʲ̤Ǥ롣
ξʸ硢0 ֤
ʳξ硢ľޤǤξʸ
ľΥХȤξԤ˰㤤褦ʡХȤζõ
ĤäХȶޤ(ʸ)κĹ׸Ԥ
(϶ϤޤäƤƤ⡢ǽäƤƤ褤)
2Ĥʸ󤫤줿ΰޤξǤС
.BR strcmp (3)
֤̤ؿ֤ͤȤ֤
ʤХͤӤ̤֤
ʳ(ξȤǤʤ)硢ξοӤ롣
ΤȤ1İʾ 0 Ƭˤϡ˾ĤƤΤ
ᤵ롣(Ƭ 0 ¿ۤ뤳Ȥˤʤ)
η̡ϼΤ褦ˤʤ:
.IR 000 ", " 00 ", " 01 ", " 010 ", " 09 ", " 0 ", " 1 ", " 9 ", " 10
.SH ֤
ؿ
.BR strverscmp ()
ϡ
1)2)3)礭Τ줫֤
줾ϡ\fIs1\fP  \fIs2\fP ⡢
1)2)3)礭 Ȥ򼨤
.SH 
δؿ GNU ˤĥǤ롣
.SH Ϣ
.BR rename (1),
.BR strcasecmp (3),
.BR strcmp (3),
.BR strcoll (3),
.BR feature_test_macros (7)