Table Of Contents

strcmp

Version:
    Last Modified: December 12, 2016

    Performs a case-sensitive comparison of character arrays.

    Syntax

    c = strcmp(a, b)

    Inputs

    a

    Character array of any dimension.

    b

    Character array of any dimension.

    Outputs

    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: DAQExpress does not support FPGA devices


    Recently Viewed Topics