1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 15:47:45 +00:00

LibC: getopt() and getopt_long() shouldn't modify argv

This commit is contained in:
Gunnar Beutner 2021-04-11 06:47:47 +02:00 committed by Andreas Kling
parent 6e51ea1e2e
commit 64740a0214
3 changed files with 14 additions and 7 deletions

View file

@ -46,6 +46,6 @@ extern int optopt;
extern int optind;
extern int optreset;
extern char* optarg;
int getopt_long(int argc, char** argv, const char* short_options, const struct option* long_options, int* out_long_option_index);
int getopt_long(int argc, char* const* argv, const char* short_options, const struct option* long_options, int* out_long_option_index);
__END_DECLS