version 1.12, 1999/09/06 13:20:40 |
version 1.13, 1999/09/06 13:24:59 |
|
|
#include <stdio.h> |
#include <stdio.h> |
#include <ctype.h> |
#include <ctype.h> |
#include <string.h> |
#include <string.h> |
|
#include <stddef.h> |
#include <err.h> |
#include <err.h> |
#include "mdef.h" |
#include "mdef.h" |
#include "stdd.h" |
#include "stdd.h" |
|
|
} else |
} else |
for (; argc--; ++argv) { |
for (; argc--; ++argv) { |
p = *argv; |
p = *argv; |
if (p[0] == '-' && p[1] == '\0') |
if (p[0] == '-' && p[1] == EOS) |
ifp = stdin; |
ifp = stdin; |
else if ((ifp = fopen(p, "r")) == NULL) |
else if ((ifp = fopen(p, "r")) == NULL) |
err(1, "%s", p); |
err(1, "%s", p); |
|
|
errx(1, "missing right quote"); |
errx(1, "missing right quote"); |
else { |
else { |
chars[0] = l; |
chars[0] = l; |
chars[1] = '\0'; |
chars[1] = EOS; |
s = chars; |
s = chars; |
} |
} |
if (nlpar > 0) { |
if (nlpar > 0) { |