Mercurial > hg > octave-lyh
diff 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 |
line wrap: on
line diff
--- a/src/strfns.cc +++ b/src/strfns.cc @@ -149,9 +149,17 @@ @deftypefn {Function File} {} strcmp (@var{s1}, @var{s2})\n\ Return 1 if the character strings @var{s1} and @var{s2} are the same,\n\ and 0 otherwise.\n\ -@strong{Caution:} For compatibility with @sc{Matlab}, Octave's strcmp\n\ -function returns 1 if the strings are equal, and 0 otherwise. This is\n\ -just the opposite of the corresponding C library function.\n\ +\n\ +If either @var{s1} or @var{s2} is a cell array of strings, then an array\n\ +of the same size is returned, containing the values described above for\n\ +every member of the cell array. The other argument may also be a cell\n\ +array of strings (of the same size or with only one element), char matrix\n\ +or character string.\n\ +\n\ +@strong{Caution:} For compatibility with @sc{Matlab}, Octave's strcmp\n\ +function returns 1 if the character strings are equal, and 0 otherwise.\n\ +This is just the opposite of the corresponding C library function.\n\ +@seealso{strcmpi, strncmp, strncmpi}\n\ @end deftypefn") { octave_value retval;