_stricmp is deprecated, use _stricmp - by _NN_

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 675121 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 6/12/2011 8:53:06 AM
Access Restriction Public


If you use _stricmp function you get warning:

'_stricmp': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _stricmp.

The reason is that function is defined as following:

_Check_return_ _CRT_NONSTDC_DEPRECATE(_stricmp) _CRTIMP int __cdecl _stricmp(_In_z_ const char * _Str1, _In_z_ const char * _Str2);

If it is deprecated, which function should I use ??
Sign in to post a comment.
Posted by MS-Moderator08 [Feedback Moderator] on 6/13/2011 at 11:02 PM
Thank you for quick response. But we only support the latest Visual Studio versions. Please install Visual Studio 2010 to get the issue resolved.

Posted by _NN_ on 6/13/2011 at 7:48 AM
It is VS version mistake.
This happens in VS2008SP1, not in VS2010.

It seems to be fixed in 2010.
But it could be nice to fix this in 2008 too.

Posted by MS-Moderator08 on 6/12/2011 at 7:27 PM
Thank you for reporting this issue. But we were not able to reproduce this issue with the souce code you provided. It compiles fine without warning.
Posted by MS-Moderator01 on 6/12/2011 at 9:48 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)