| C Math Library Reference | ![]() |
Compare the first n characters of two strings, ignoring case
C Prototype
mxArray *mlfStrncmpi(mxArray *str1, mxArray *str2);
C Syntax
#include "matlab.h"
mxArray *S, *T; /* Input argument(s) */
mxArray *k = NULL, *TF = NULL; /* Return value */
mlfAssign(&k, mlfStrncmpi(mxCreateString("str1"),
mxCreateString("str2")));
mlfAssign(&TF, mlfStrncmpi(S,T));
MATLAB Syntax
strncmpi('str1','str2',n)
TF = strncmpi(S,T,n)
See Also
MATlAB strncmpi Calling Conventions
| mlfStrncmp | mlfStrrep | ![]() |