Skip to content
Search

C:strcmp

lastmod 2018-08-17created 2016-03-314 edits

Compare two strings.

Troubleshooting

Undefined _stricmp

The -std=c++0x option causes g++ to go into 'strict ANSI' mode so it doesn't declare non-standard functions (and _stricmp() is non-standard - it's just a version of strcmp() that's case-insensitive).

Use -std=gnu++0x instead.

Or,

#ifdef __STRICT_ANSI__
#undef __STRICT_ANSI__
#endif

See also

Favorite site