return (totalmisscount > 0);
}
-void
+static void
new_words_per_minute ()
{
float wtick, ftick, tick;
static int tryingagain = 0, slowpoke = 0;
-void
-dowords (c)
- int c;
+static void
+dowords (int c)
{
static int wordc = 0;
static char word[MAXWORDLEN+1];
* Don't try to test the person DURING the call into morse!
*/
void
-morse (c)
- int c;
+morse (int c)
{
if ((isalpha (c) && (code[tolower(c)] == NULL)) || ((code[(int) '%'] == NULL) && ((c == EOF) || (c == '\004'))))
c = ' ';
/*
* Don't try to test the person WHILE doing dots and dashes!
*/
-void
-show (s)
- char *s;
+static void
+show (char *s)
{
char c;
* that have a morse code associated with them
* or ones for which isspace(c) is true.
*/
-void
-testaddchar (c)
- char c;
+static void
+testaddchar (char c)
{
testpointer = (testpointer + 1) % TESTBUFSZ;
teststring[testpointer] = c;
behindness++;
}
-void
-youraddchar (c)
- char c;
+static void
+youraddchar (char c)
{
yourpointer = (yourpointer + 1) % TESTBUFSZ;
yourstring[yourpointer] = c;
}
}
-void
-pollyou ()
+static void
+pollyou (void)
{
-int ii, num;
-char *string;
+ int ii, num;
+ char *string;
num = readterminal (&string);
youraddchar (string[ii]);
}
-int
-testterminal ()
+static int
+testterminal (void)
{
int testinc, yourinc;
int correctchar, yourchar, yourcharnocase;
static int oldflgs, newflgs;
#endif
-void
-openterminal ()
+static void
+openterminal (void)
{
/* get parameters and open terminal */