* Copyright (c) 1988, 1993
* The Regents of the University of California. All rights reserved.
* %sccs.include.redist.c%
static char copyright
[] =
"@(#) Copyright (c) 1988, 1993\n\
The Regents of the University of California. All rights reserved.\n";
static char sccsid
[] = "@(#)morse.c 8.1 (Berkeley) %G%";
while ((ch
= getopt(argc
, argv
, "s")) != EOF
)
fprintf(stderr
, "usage: morse [string ...]");
else while ((ch
= getchar()) != EOF
)
show(alph
[c
- (isupper(c
) ? 'A' : 'a')]);
printf(" %s", *s
== '.' ? "dit" : "daw");