home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
games
/
volume11
/
jotto
/
part01
/
load.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-12-11
|
387b
|
29 lines
/*
* load
*/
#include <stdio.h>
#ifdef BSD
#include <strings.h>
#else
#include <string.h>
#endif
#include "jotto.h"
extern char dict[DICTLEN][WORDLEN*2+1];
extern int ndict;
extern FILE *tape4;
load()
{
char lline[80+1];
rewind(tape4);
ndict=0;
while (fgets(lline, 80, tape4)) {
strncpy(dict[ndict], lline, WORDLEN*2);
dict[ndict++][WORDLEN*2] = '\0';
}
rewind(tape4);
}