1
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
2
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
4
<LANGUAGE>eng</LANGUAGE>
5
<TITLE>mtlb_strcmp</TITLE>
6
<TYPE>M2SCI function</TYPE>
7
<DATE>April 2004</DATE>
9
<SHORT_DESCRIPTION name="mtlb_strcmp">Matlab strcmp emulation function</SHORT_DESCRIPTION>
13
<P>There is no Scilab function equivalent for Matlab <VERB>strcmp</VERB>, there is equivalent instructions.</P>
16
The function <VERB>mtlb_strcmp(A,B)</VERB> is used by
17
<VERB>mfile2sci</VERB> to replace <VERB>strcmp(A,B)</VERB> when it was not
18
possible to know what were the inputs while porting Matlab code to Scilab. This function will
19
determine the correct semantic at run time. If you want to have a
20
more efficient code it is possible to replace <VERB>mtlb_strcmp</VERB> calls:
28
If <VERB>A</VERB> and <VERB>B</VERB> are character strings
29
<VERB>mtlb_strcmp(A,B)</VERB> may be replaced by <VERB>A==B</VERB>
35
If <VERB>A</VERB> and/or <VERB>B</VERB> is not a character string
36
<VERB>mtlb_strcmp(A,B)</VERB> may be replaced by <VERB>0</VERB>
43
<P>Caution: <VERB>mtlb_strcmp</VERB> has not to be used for hand coded functions.</P>
48
<AUTHORS_ITEM>V.C.</AUTHORS_ITEM>