strcmp

Version:

Performs a case-sensitive comparison of character arrays.

Syntax

c = strcmp(a, b)

a

Character array of any dimension.

b

Character array of any dimension.

c

1 if a and b are both character arrays and have the same value. Otherwise, the function returns 0. c is a Boolean.

A = 'This is a test for strcmp'
B = 'is'
C = strcmp(A, B)

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported