Debian Codegraph @

opcodes/strcmp.xml

raw symbols SCIP
1
2 <refentry id="strcmp">
3 <indexterm id="Indexstrcmp"><primary>strcmp</primary></indexterm>
4 <refentryinfo><title>Strings:Manipulation</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>strcmp</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>strcmp</refname>
13 <refpurpose>
14 Compare strings
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 Compare strings and set the result to -1, 0, or 1 if the first string is less than, equal to, or greater than the second, respectively. strcmp compares at i-time only.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis>ires <command>strcmp</command> S1, S2</synopsis>
28 </refsect1>
29
30 <refsect1>
31 <title>Examples</title>
32 <para>
33 Here is an example of the strcmp opcode. It uses the file <ulink url="examples/strcmp.csd"><citetitle>strcmp.csd</citetitle></ulink>.
34 <example>
35 <title>Example of the strcmp opcode.</title>
36 <xi:include href="examples-xml/strcmp.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
37 </example>
38 </para>
39 </refsect1>
40
41 <refsect1>
42 <title>See Also</title>
43 <para><link linkend="stringmanipulate"><citetitle></citetitle>String Manipulation Opcodes</link></para>
44 </refsect1>
45
46 <refsect1>
47 <title>Credits</title>
48 <para>
49 <simplelist>
50 <member>Author: Istvan Varga</member>
51 <member>2005</member>
52 </simplelist>
53 </para>
54 </refsect1>
55 </refentry>