locked
Difference in stricmp vs _stricmp

    Question

  • 1. What is the difference in stricmp vs _stricmp

    2. Why stricmp is depreacted with VS2005

    Monday, July 17, 2006 8:00 AM

Answers

  • stricmp is a POSIX function, and not a standard C90 function.  To avoid name clashes we've deprecated the non-conforming name (stricmp) and recommend using _stricmp instead.  There is not a difference in functionality (stricmp is merely an alias for _stricmp.)
    Monday, August 21, 2006 9:54 PM

All replies

  • stricmp is a POSIX function, and not a standard C90 function.  To avoid name clashes we've deprecated the non-conforming name (stricmp) and recommend using _stricmp instead.  There is not a difference in functionality (stricmp is merely an alias for _stricmp.)
    Monday, August 21, 2006 9:54 PM
  • Thanks Jeff, it's resolve my issue.

    But can you please help, I am getting one more error while porting about the CRegKey

    it is saying ::

    warning C4996: 'ATL::CRegKey::SetValue' was declared deprecated

    D:\Program Files (x86)\Microsoft Visual Studio 8\VC\atlmfc\include\atlbase.h(5100) : see declaration of 'ATL::CRegKey::SetValue'

    Message: 'CRegKey::SetValue(TCHAR *value, TCHAR *valueName) has been superseded by CRegKey::SetStringValue and CRegKey::SetMultiStringValue'

    Can you plz help.

    Thanks in advance.

     

     

    Tuesday, March 06, 2007 9:48 AM