I am trying to port a C (not C++) program from GCC to Visual Studio.
The GCC specific function strdupa() is widely used in this program. Is there any way to implement this function for Visual C.
PS. I understand that it uses alloca() and it is unsafe. But it works very well on GCC now and I think it is safer to implement the same function in one place then change the logic of program. I also don't want performance to decrease.