1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE MAN SYSTEM "../../../../modules/helptools/help.dtd">
4 <LANGUAGE>eng</LANGUAGE>
8 <TYPE>Scilab Function</TYPE>
10 <DATE>$LastChangedDate: 2006-08-08 16:57:13 +0200 (Tue, 08 Aug 2006)$</DATE>
12 <SHORT_DESCRIPTION name="strcmp">compare character
13 strings</SHORT_DESCRIPTION>
16 <CALLING_SEQUENCE_ITEM>res =
17 strcmp(string_one,string_two,[,'i'])</CALLING_SEQUENCE_ITEM>
23 <PARAM_NAME>string_one</PARAM_NAME>
26 <SP>: string or matrix of strings</SP>
31 <PARAM_NAME>string_two</PARAM_NAME>
34 <SP>: string or matrix of strings</SP>
39 <PARAM_NAME>'i'</PARAM_NAME>
42 <SP>: parameter to do stricmp, default value is 's'</SP>
47 <PARAM_NAME>res</PARAM_NAME>
57 <P><VERB>res = strcmp(string_one,string_two)</VERB> returns an integral
58 value indicating the relationship between the strings.</P>
60 <P>A value greater than zero indicates that the first character that does
61 not match has a greater value in <VERB>string_one</VERB> than in
62 <VERB>string_two</VERB></P>
64 <P>And a value less than zero indicates the opposite.</P>
69 TXT1 = ['scilab','SciLab';'Strcmp','STRcmp'];
70 TXT2 = ['ScIlAb','sciLab';'sTrCmP','StrCMP'];