* Copyright (c) 1986 The Regents of the University of California.
* %sccs.include.proprietary.c%
static char sccsid
[] = "@(#)start.c 4.8 (Berkeley) %G%";
register struct dirent
*ep
;
if ((dp
= opendir(".")) == NULL
) { /* clean up play directory */
perror("Start: play directory");
while ((ep
= readdir(dp
)) != NULL
) {
if (n
>= 2 && ep
->d_name
[n
-2] == '.' && ep
->d_name
[n
-1] == 'c')
sprintf(where
, "%s/%s/L%s", direct
, sname
, lesson
);
if (access(where
, R_OK
)==0) /* there is a file */
fprintf(stderr
, "Start: no lesson %s\n",lesson
);
while ( (n
=read(fo
, b
, BUFSIZ
)) > 0)