c++ - What is the difference between _itoa and itoa? -


Visual Studio has screamed me about using IOO ... ... instead of using _itoa to do? I think they are the same work ... what gives?

AC run time library implementation is not going to present those names that are not in the standard, unless That they do not follow a certain naming convention (such as starting with an underscore). Earlier versions of Microsoft's compiler did not make this rule very close, but over time, Microsoft is moving forward to make its implementation more consistent with the standards. Therefore, the functions that they will infiltrate on the user's namespace, which are using names that are reserved for implementing the compiler and dislike the old names.

If defined by _CRT_NONSTDC_NO_WARNINGS , the MS Compiler will not complain itoa () function is being deprecated but it is still unsafe (You must define _CRT_SECURE_NO_WARNINGS to calm that warning). Or use the secure version of the function ( _itoa_s () ) that provides the job with the destination buffer size

Both _itoa () and < Code> IOA () Resolve the same function in the library at the same address - There is no difference except the name.


Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -