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

LibC: Make getopt available from getopt.h

This commit is contained in:
Tim Schumacher 2023-07-15 18:51:44 +02:00 committed by Andrew Kaster
parent aae106e37b
commit f8bd607733
3 changed files with 31 additions and 21 deletions

View file

@ -6,6 +6,7 @@
#pragma once
#include <bits/getopt.h>
#include <sys/cdefs.h>
__BEGIN_DECLS
@ -21,11 +22,6 @@ struct option {
int val;
};
extern int opterr;
extern int optopt;
extern int optind;
extern int optreset;
extern char* optarg;
int getopt_long(int argc, char* const* argv, char const* short_options, const struct option* long_options, int* out_long_option_index);
__END_DECLS