strcmp() is in the C++ header <cstring>
authorLars Rohwedder <roker@pep-project.org>
Wed, 06 Apr 2016 16:46:06 +0200
changeset 526b8b302ec9330
parent 525 af013efb07b1
child 527 8d731c1c176a
strcmp() is in the C++ header <cstring>
test/blacklist_test.cc
     1.1 --- a/test/blacklist_test.cc	Sun Apr 03 17:18:37 2016 +0200
     1.2 +++ b/test/blacklist_test.cc	Wed Apr 06 16:46:06 2016 +0200
     1.3 @@ -1,5 +1,6 @@
     1.4  #include <iostream>
     1.5  #include <string>
     1.6 +#include <cstring> // for strcmp()
     1.7  #include <assert.h>
     1.8  #include "blacklist.h"
     1.9  
    1.10 @@ -38,7 +39,7 @@
    1.11      cout << "the blacklist contains now: ";
    1.12      for (stringlist_t *bl = blacklist; bl && bl->value; bl = bl->next) {
    1.13          cout << bl->value << ", ";
    1.14 -        if (strcmp(bl->value, "23") == 0)
    1.15 +        if (std::strcmp(bl->value, "23") == 0)
    1.16              in23 = true;
    1.17      }
    1.18      cout << "END\n";