Home Dashboard Directory Help
Search

_stricmp is deprecated, use _stricmp by _NN_


Status: 

Closed
 as Fixed Help for as Fixed


2
0
Sign in
to vote
Type: Bug
ID: 675121
Opened: 6/12/2011 8:53:06 AM
Access Restriction: Public
Moderator Decision: Sent to Engineering Team for consideration
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

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 ??
Details
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.

Thanks!
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.

Thanx.
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)
Sign in to post a workaround.