Is it possible to change argv or do I need to create an adjusted copy of it?

后端 未结 8 1042
长情又很酷
长情又很酷 2020-11-29 09:01

My application has potentially a huge number of arguments passed in and I want to avoid the memory of hit duplicating the arguments into a filtered list. I would like to fi

8条回答
  •  伪装坚强ぢ
    2020-11-29 09:35

    The operating system push the argv and argc into the applicaton stack before executing it, and you can treat them like any other stack variables.

提交回复
热议问题