strcmp

Prototype: strcmp(string1, string2)

Return type: class

Description: Returns whether the two strings string1 and string2 match exactly.

Arguments:

  • string1 : The first string, in the range .*
  • string2 : The second string, in the range .*

Example:

bundle agent example
{     
classes:

  "same" expression => strcmp("test","test");

reports:

  same::

    "Strings are equal";

 !same::

    "Strings are not equal";
}