Add syscalls to Blinkenlights and fix bugs

This commit is contained in:
Justine Tunney 2022-05-13 13:31:21 -07:00
parent f6df29cc3d
commit 578cb21591
25 changed files with 187 additions and 108 deletions

View file

@ -79,8 +79,10 @@ hidden char *getopt_place;
char kGetoptEmsg[1] hidden;
static void getopt_print_badch(const char *s) {
fputs(program_invocation_name, stderr);
fputs(": ", stderr);
if (program_invocation_name) {
fputs(program_invocation_name, stderr);
fputs(": ", stderr);
}
fputs(s, stderr);
fputs(" -- ", stderr);
fputc(optopt, stderr);