home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.update.uu.se
/
ftp.update.uu.se.2014.03.zip
/
ftp.update.uu.se
/
pub
/
rainbow
/
cpm
/
emacs
/
emacssrc.lzh
/
filerite.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-03-11
|
573b
|
23 lines
#include "stdio.h"
#include "ed.h"
/*
* Ask for a file name, and write the
* contents of the current buffer to that file.
* Update the remembered file name and clear the
* buffer changed flag. This handling of file names
* is different from the earlier versions, and
* is more compatable with Gosling EMACS than
* with ITS EMACS. Bound to "C-X C-W".
*/
ovmain(x, f, n)
{
register int s;
char fname[NFILEN];
if (( s = mlreply( "Write file: ", fname, NFILEN )) != TRUE )
return (s);
return ( writeout( fname ));
}
#include "writeout.c"