#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "getopt.h"
Go to the source code of this file.
◆ BADCH
◆ EMSG
◆ tell
Value:
int CDECL fputs(const char *s, FILE *file)
int CDECL fputc(int c, 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}
_ACRTIMP char *__cdecl strchr(const char *, int)
◆ optarg
◆ opterr
◆ optind
◆ optopt