When I use strdup in Microsoft Visual C++, it warns me:
strdup
warning C4996: \'strdup\': The POSIX name for this item is deprecated. Instead, u
If you just want to avoid the Warning message:
Project-> property -> C/C++ -> Preprocessor -> Preprocessor Definitions
Edit this, and add
_CRT_NONSTDC_NO_DEPRECATE