此警告意味着在应当使用字符串比较函数的位置使用了字符串复制函数。
This warning indicates that a string copy function was used where a string comparison function should have been used.
如清单5所示,该函数只是比较两个给定的字符串,如果它们相等则返回1。
As you could see in Listing 5, the function just compares the two given strings and returns 1 (one) if they are equal.
为了避免出现麻烦,不要将字符串与内置的Boolean函数true和false进行比较。
To avoid trouble, do not compare a string to the built-in Boolean functions true and false .
应用推荐