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 / fileread.c < prev    next >
C/C++ Source or Header  |  1992-03-11  |  627b  |  28 lines

  1. /*
  2.  * The routines in this file
  3.  * handle the reading and writing of
  4.  * disk files. All of details about the
  5.  * reading and writing of the disk are
  6.  * in "fileio.c".
  7.  */
  8. #include    "stdio.h"
  9. #include    "ed.h"
  10.  
  11. /*
  12.  * Read a file into the current
  13.  * buffer. This is really easy; all you do it
  14.  * find the name of the file, and call the standard
  15.  * "read a file into the current buffer" code.
  16.  * Bound to "C-X C-R".
  17.  */
  18. ovmain( x, f, n )
  19. {
  20.     register int    s;
  21.     char        fname[NFILEN];
  22.  
  23.     if ((s=mlreply("Read file: ", fname, NFILEN)) != TRUE)
  24.         return (s);
  25.     return (readin(fname, ( n > 0)));
  26. }
  27. #include "readin.c"
  28.