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)
13 <SHORT_DESCRIPTION name="strcmp">compare character
14 strings</SHORT_DESCRIPTION>
17 <CALLING_SEQUENCE_ITEM>res =
18 strcmp(string_one,string_two,[,'i'])</CALLING_SEQUENCE_ITEM>
24 <PARAM_NAME>string_one</PARAM_NAME>
27 <SP>: string or matrix of strings</SP>
32 <PARAM_NAME>string_two</PARAM_NAME>
35 <SP>: string or matrix of strings</SP>
40 <PARAM_NAME>'i'</PARAM_NAME>
43 <SP>: parameter to do stricmp, default value is 's'</SP>
48 <PARAM_NAME>res</PARAM_NAME>
58 <P><VERB>res = strcmp(string_one,string_two)</VERB> returns an integral
59 value indicating the relationship between the strings.</P>
61 <P>A value greater than zero indicates that the first character that does
62 not match has a greater value in <VERB>string_one</VERB> than in
63 <VERB>string_two</VERB></P>
65 <P>And a value less than zero indicates the opposite.</P>
70 TXT1 = ['scilab','SciLab';'Strcmp','STRcmp'];
71 TXT2 = ['ScIlAb','sciLab';'sTrCmP','StrCMP'];