home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 2 BBS
/
02-BBS.zip
/
bbbsr2.zip
/
scripts
/
editor.bz
< prev
next >
Wrap
Text File
|
1997-06-26
|
564b
|
14 lines
int main(char file, int confnro, int replyto) {
// file is the filename to be edited
// confnro is the number of conference where this message will be saved
// replyto is the number of message to which this is a reply
// next while is for dos/nt/os2 only!
while (pos("/",file)) file=sprintf("%s\\%s",copy(file,1,pos("/",file)-1),copy(file,pos("/",file)+1,120));
if (bv_com) return(1); // remote caller editor...
else
system(sprintf("emacs %s",file),0); // local user editor
return(0); // 0=ask, 1=cancel, 2=save
}