Skip to content

strncmp

builtin · libnexusinterp/corefcn/strfns-proprietary.cc

: tf = strncmp (s1, s2, n)

Return true where the first n characters of s1 and s2 agree.

When either string is shorter than n the strings must be identical. Cell array arguments behave as for strcmp.