This seems like a pretty softball question, but I always have a hard time looking up this function because there seem there are so many variations regarding the referencing
Here is the CPP code that duplicates _TCHAR * argv[] to char * argn[].
http://www.wincli.com/?p=72
If you adopting old code to Windows, simple use define mentioned in the code as optional.