Mercurial > octave-nkf
comparison src/strfns.cc @ 5530:6f29a563b976
[project @ 2005-11-07 19:05:58 by jwe]
author | jwe |
---|---|
date | Mon, 07 Nov 2005 19:06:03 +0000 |
parents | 9433f94acd29 |
children | ad2e70544c77 |
comparison
equal
deleted
inserted
replaced
5529:29d855ffcfad | 5530:6f29a563b976 |
---|---|
152 @strong{Caution:} For compatibility with @sc{Matlab}, Octave's strcmp\n\ | 152 @strong{Caution:} For compatibility with @sc{Matlab}, Octave's strcmp\n\ |
153 function returns 1 if the strings are equal, and 0 otherwise. This is\n\ | 153 function returns 1 if the strings are equal, and 0 otherwise. This is\n\ |
154 just the opposite of the corresponding C library function.\n\ | 154 just the opposite of the corresponding C library function.\n\ |
155 @end deftypefn") | 155 @end deftypefn") |
156 { | 156 { |
157 octave_value retval; | 157 octave_value retval = false; |
158 | 158 |
159 if (args.length () == 2) | 159 if (args.length () == 2) |
160 { | 160 { |
161 bool s1_string = args(0).is_string (); | 161 bool s1_string = args(0).is_string (); |
162 bool s1_cell = args(0).is_cell (); | 162 bool s1_cell = args(0).is_cell (); |