FUNCTION REFERENCE
strncmp
Compare the first n characters of text, case-sensitive.
Compare the first n characters of text, case-sensitive.
Syntax
tf = strncmp(a, b, n)Same as strcmp, but only the first n characters count. A text shorter than n is equal only to identical text. n = 0 gives true.
Example
strncmp('hello', 'help', 3) % trueDifferences from MATLAB: none known.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.