static char sccsid
[] = "@(#)mem.c 4.3 (Berkeley) 5/15/86";
{"#uncopyout", UNCOPOUT
},
for (kp
=keybuff
; kp
->k_wd
; kp
++)
if (strcmp(kp
->k_wd
, s
) == SAME
)
static struct whichdid
*pw
;
fprintf(stderr
, "Setdid: too many lessons\n");
while (*whcp
++ = *lesson
++);
if (whcp
>= whbuff
+ NWCH
) {
fprintf(stderr
, "Setdid: lesson names too long\n");
nwh
= pw
- which
; /* pretend the rest have not been done */
for (pw
=which
; pw
< which
+nwh
; pw
++)
if (strcmp(pw
->w_less
, lesson
) == SAME
)
for (pw
=which
; pw
< which
+nwh
; pw
++)
printf("%3d lesson %7s sequence %3d\n",
pw
-which
, pw
->w_less
, pw
->w_seq
);