Linux equivalent of GetCommandLine and CommandLineToArgv?

后端 未结 4 2073

I wonder if there are some API to get the current process\' command line arguments on Linux.


I guess I was terribly unclear. The real purpose of the question was a

4条回答
  •  执笔经年
    2021-02-14 17:36

    Just use argc and argv. argv will be in the local encoding (which could be UTF-8), and from there you can convert to wchar_t (e.g. via mbtowc).

提交回复
热议问题