Mercurial > octave-nkf
comparison src/strfns.cc @ 5674:86adc85cc471
[project @ 2006-03-16 03:46:45 by jwe]
author | jwe |
---|---|
date | Thu, 16 Mar 2006 03:46:45 +0000 |
parents | ad2e70544c77 |
children | 161ebd1f3410 |
comparison
equal
deleted
inserted
replaced
5673:0dc67016832b | 5674:86adc85cc471 |
---|---|
147 DEFUN (strcmp, args, , | 147 DEFUN (strcmp, args, , |
148 "-*- texinfo -*-\n\ | 148 "-*- texinfo -*-\n\ |
149 @deftypefn {Function File} {} strcmp (@var{s1}, @var{s2})\n\ | 149 @deftypefn {Function File} {} strcmp (@var{s1}, @var{s2})\n\ |
150 Return 1 if the character strings @var{s1} and @var{s2} are the same,\n\ | 150 Return 1 if the character strings @var{s1} and @var{s2} are the same,\n\ |
151 and 0 otherwise.\n\ | 151 and 0 otherwise.\n\ |
152 @strong{Caution:} For compatibility with @sc{Matlab}, Octave's strcmp\n\ | 152 \n\ |
153 function returns 1 if the strings are equal, and 0 otherwise. This is\n\ | 153 If either @var{s1} or @var{s2} is a cell array of strings, then an array\n\ |
154 just the opposite of the corresponding C library function.\n\ | 154 of the same size is returned, containing the values described above for\n\ |
155 every member of the cell array. The other argument may also be a cell\n\ | |
156 array of strings (of the same size or with only one element), char matrix\n\ | |
157 or character string.\n\ | |
158 \n\ | |
159 @strong{Caution:} For compatibility with @sc{Matlab}, Octave's strcmp\n\ | |
160 function returns 1 if the character strings are equal, and 0 otherwise.\n\ | |
161 This is just the opposite of the corresponding C library function.\n\ | |
162 @seealso{strcmpi, strncmp, strncmpi}\n\ | |
155 @end deftypefn") | 163 @end deftypefn") |
156 { | 164 { |
157 octave_value retval; | 165 octave_value retval; |
158 | 166 |
159 if (args.length () == 2) | 167 if (args.length () == 2) |