#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "getopt.h"
Go to the source code of this file.
◆ BADCH
◆ EMSG
◆ tell
Value:
_Check_return_opt_ _CRTIMP int __cdecl fputs(_In_z_ const char *_Str, _Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP int __cdecl fputc(_In_ int _Ch, _Inout_ FILE *_File)
Definition at line 28 of file getopt.c.
◆ getopt()
Definition at line 31 of file getopt.c.
32{
34 register char *oli;
35
42 }
43 }
45 {
47 tell(
": illegal option -- ");
48 }
49 if (*++oli != ':') {
52 }
53 else {
57 tell(
": option requires an argument -- ");
58 }
62 }
64}
char * strchr(const char *String, int ch)
◆ optarg
◆ opterr
◆ optind
◆ optopt