Home > freetb4matlab > strings > strncmpi.m

strncmpi

PURPOSE ^

% Ignoring case, return 1 if the first @var{n} characters of character

SYNOPSIS ^

function retval = strncmpi (s1, s2, n)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {} strncmpi (@var{s1}, @var{s2}, @var{n})
% Ignoring case, return 1 if the first @var{n} characters of character
% strings (or character arrays) @var{s1} and @var{s2} are the same, and
% 0 otherwise.
%
% If either @var{s1} or @var{s2} is a cell array of strings, then an array
% of the same size is returned, containing the values described above for
% every member of the cell array.  The other argument may also be a cell
% array of strings (of the same size or with only one element), char matrix
% or character string.
%
% @strong{Caution:} For compatibility with @sc{matlab}, Octave's strncmpi
% function returns 1 if the character strings are equal, and 0 otherwise.
% This is just the opposite of the corresponding C library function.
% @seealso{strcmp, strcmpi, strncmp}
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003