LibC: Implement getopt_long{,_only}

Few ports attempt to use this so lets add them :D
This commit is contained in:
2025-08-11 18:36:46 +03:00
parent c9355ad94a
commit fde4d4662e
6 changed files with 239 additions and 89 deletions

View File

@@ -0,0 +1,15 @@
#ifndef _BITS_GETOPT_H
#define _BITS_GETOPT_H 1
#include <sys/cdefs.h>
__BEGIN_DECLS
int getopt(int argc, char* const argv[], const char* optstring);
extern char* optarg;
extern int opterr, optind, optopt;
__END_DECLS
#endif