Home > freetb4matlab > strings > cstrcmp.m

cstrcmp

PURPOSE ^

% compares the @var{string1} and @var{string2} like the C-library

SYNOPSIS ^

function rval=cstrcmp(s1,s2)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} @var{rval}= {} cstrcmp(@var{string1},@var{string2})
% compares the  @var{string1} and @var{string2} like the C-library
% function, returning 0 on match, +1 if @var{string1} > @var{string2}
% and -1 if @var{string1} < @var{string2}.
% This operation is asymmetrical. If either @var{string1} or
% @var{string2} are cell-arrays (not both simultaneously), then the
% return value @var{rval} will be a similar cell-array of strings.
%
% @example
% @group
%           cstrcmp('marry','marie') 
%           %%returns value +1
% @end group
% @end example
% @end deftypefn
% @seealso {strcmp}
%

CROSS-REFERENCE INFORMATION ^

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