]>
diplodocus.org Git - nmh/blob - docs/historical/mh-nov-1983/subs/m_setcur.c
12 if(mp
->msgflags
&READONLY
) {
13 m_replace(cp1
= concat("cur-",mp
->foldpath
,0), m_name(num
));
16 strcpy(buf
, m_name(num
));
17 cp1
= buf
+ strlen(buf
);
19 if(strcmp(current
, "cur"))
20 error("\"current\" got Clobbered!! Tell B. Borden");
21 if((i
= creat(current
, 0660)) >= 0) {
22 write(i
, buf
, cp1
-buf
);