![]() | Programming Guide | ![]() |
Sets the repository name
int sm_dicname(char *filespec);
filespec- The repository's name and, optionally, path. If no path is specified, Panther searches for the file according to the paths specified in SMPATH.
C only
sm_dicnamesets the name of the repository to open in the screen editor. You can also specify a repository by setting theSMDICNAMEvariable in your setup file to the desired repository's name. During an editing session, you can close and open repositories through the screen editor's File menu. Only one repository can be open at a time.
#include <smdefs.h>
/* Set the name of the application's repository
* to /usr/app/common.dic .*/
sm_dicname("/usr/app/common.dic");
![]()
![]()
![]()
![]()