-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why the memmove at the end of argparse ? #3
Comments
To remove parsed command-line arguments. For example, |
You do realize that you by that approach destroy the original look of that process in process listings such at "ps -ef", "top" ? That is not very "compatible" - there are other more non-intrusive approaches: The getopt() approach return an index indicating how far into the argv[] you have processed |
There will be warning when compile with vs2017 express: in struct out is announced as "const char **out", there is a "const" declaration, but you change the content at memmove() operation? |
Hi,
Why the memmove at the end of argparse ?
It destroys the original argv array
The text was updated successfully, but these errors were encountered: