In file miscfx.h:

int editor

(char* fname, int limit)

Edit a file.

Documentation

Edit a file.

Executes the visual or line editor (depending on user's settings) to edit a given file.

The correct way to edit a file is to either create it in /tmp, or to make a symbolic link to it. If the user cancels the editing process, THE FILE WILL BE DELETED.

Parameters:
- fname The full filename of the file to edit.
limit - The size limit of the file. BBS editors, unlike most other editors, can impose this limit on users.
Returns:
The same values as runmodule(), which are the same as system(). If the user saved the file, the fname will still exist and will contain the updated content. If the user chose to cancel the editing session without saving, fname will no longer exist.

Alphabetic index



This page was generated with the help of DOC++.