0

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?

Feroz
  • 699
  • 5
  • 17
  • 25

1 Answers1

2

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

Community
  • 1
  • 1
mmmmmm
  • 32,227
  • 27
  • 88
  • 117
  • 1
    For further reference, the correct function is `strcasecmp()` and it's in `strings.h` http://developer.apple.com/library/ios/#documentation/system/conceptual/manpages_iphoneos/man3/strcasecmp.3.html – JeremyP Aug 10 '12 at 11:53