Feroz
Feroz

Reputation: 699

Build error while using stricmp in Xcode

I am getting build error while using stricmp to compare two C strings in Xcode.

Error : Implicit declaration of stricmp invalid in C99. What is it means?

Upvotes: 0

Views: 1591

Answers (1)

mmmmmm
mmmmmm

Reputation: 32701

What it means is that a declaration of stricmp cannot be found in the headers you have included. Earlier versions of C allowed you to call functions that were not declared in the headers and assumed that they were declared as int function()

stricmp is not in the C or POSIX standards. For iOS look at strcasecmp() as per this SO question

Upvotes: 2

Related Questions