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
You can #define _CRT_NONSTDC_NO_DEPRECATE to disable this warning.