| Libgretl Reference Manual |
|---|
gretl_pathsgretl_paths — |
void set_string_table_written (void); int gretl_string_table_written (void); int gretl_path_prepend (char *file, const char *path); FILE* gretl_fopen (const char *filename, const char *mode); gzFile gretl_gzopen (const char *filename, const char *mode); int gretl_is_xml_file (const char *fname); char* addpath (char *fname, PATHS *ppaths, int script); int getopenfile (const char *line, char *fname, PATHS *ppaths, gretlopt opt); int gretl_path_is_absolute (const char *fname); void show_paths (const PATHS *ppaths); int set_paths (PATHS *ppaths, gretlopt opt); const char* gretl_lib_path (void); const char* gretl_user_dir (void); void set_gretl_user_dir (const char *path, PATHS *ppaths); void gretl_maybe_switch_dir (const char *fname); const char* gretl_gnuplot_path (void); const char* gretl_plotfile (void); char* set_gretl_plotfile (const char *fname); const char* gretl_x12_arima (void); const char* gretl_x12_arima_dir (void); const char* gretl_png_font (void); void set_gretl_png_font (const char *s, PATHS *ppaths);
int gretl_path_prepend (char *file,
const char *path);
file : |
|
path : |
|
| Returns : |
FILE* gretl_fopen (const char *filename,
const char *mode);
filename : |
|
mode : |
|
| Returns : |
gzFile gretl_gzopen (const char *filename,
const char *mode);
filename : |
|
mode : |
|
| Returns : |
char* addpath (char *fname,
PATHS *ppaths,
int script);
Elementary path-searching: try adding various paths to the given
fname and see if it can be opened. Usually called by getopenfile().
fname : |
initially given file name. |
ppaths : |
path information struct. |
script : |
if non-zero, suppose the file is a command script. |
| Returns : | the full name of the file that was found, or NULL if no file could be found. |
int getopenfile (const char *line,
char *fname,
PATHS *ppaths,
gretlopt opt);
Elementary path-searching: try adding various paths to the given
fname and see if it can be opened.
line : |
command line (e.g. "open foo"). |
fname : |
filename to be filled out. |
ppaths : |
pointer to paths information struct. |
opt : |
if includes OPT_W, treat as web filename and don't
try to add path, if OPT_S, treat as a script.
|
| Returns : | 0 on successful parsing of line, 1 on error.
|
| << gretl_list | plugins >> |