reference/strings/functions/strcmp.xml
9b68bf2b63200534e022bc65e800cae6c75abf26
9b68bf2b63200534e022bc65e800cae6c75abf26
...
...
@@ -1,6 +1,6 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.strcmp">
3
+
<refentry xml:id="function.strcmp" xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
5
5
<refname>strcmp</refname>
6
6
<refpurpose>Binary safe string comparison</refpurpose>
...
...
@@ -10,8 +10,8 @@
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
12
<type>int</type><methodname>strcmp</methodname>
13
-
<methodparam><type>string</type><parameter>str1</parameter></methodparam>
14
-
<methodparam><type>string</type><parameter>str2</parameter></methodparam>
13
+
<methodparam><type>string</type><parameter>string1</parameter></methodparam>
14
+
<methodparam><type>string</type><parameter>string2</parameter></methodparam>
15
15
</methodsynopsis>
16
16
<simpara>
17
17
Note that this comparison is case sensitive.
...
...
@@ -23,7 +23,7 @@
23
23
<para>
24
24
<variablelist>
25
25
<varlistentry>
26
-
<term><parameter>str1</parameter></term>
26
+
<term><parameter>string1</parameter></term>
27
27
<listitem>
28
28
<para>
29
29
The first string.
...
...
@@ -31,7 +31,7 @@
31
31
</listitem>
32
32
</varlistentry>
33
33
<varlistentry>
34
-
<term><parameter>str2</parameter></term>
34
+
<term><parameter>string2</parameter></term>
35
35
<listitem>
36
36
<para>
37
37
The second string.
...
...
@@ -44,12 +44,24 @@
44
44
45
45
<refsect1 role="returnvalues">
46
46
&reftitle.returnvalues;
47
-
<para>
48
-
Returns < 0 if <parameter>str1</parameter> is less than
49
-
<parameter>str2</parameter>; > 0 if <parameter>str1</parameter>
50
-
is greater than <parameter>str2</parameter>, and 0 if they are
51
-
equal.
52
-
</para>
47
+
&strings.comparison.return;
48
+
</refsect1>
49
+
50
+
<refsect1 role="changelog">
51
+
&reftitle.changelog;
52
+
<informaltable>
53
+
<tgroup cols="2">
54
+
<thead>
55
+
<row>
56
+
<entry>&Version;</entry>
57
+
<entry>&Description;</entry>
58
+
</row>
59
+
</thead>
60
+
<tbody>
61
+
&standard.changelog.binary-safe-string-comparison;
62
+
</tbody>
63
+
</tgroup>
64
+
</informaltable>
53
65
</refsect1>
54
66
55
67
<refsect1 role="examples">
...
...
@@ -87,7 +99,6 @@ if (strcmp($var1, $var2) !== 0) {
87
99
</refsect1>
88
100
89
101
</refentry>
90
-
91
102
<!-- Keep this comment at the end of the file
92
103
Local variables:
93
104
mode: sgml
94
105