Next: head.sc Up: SmacLib Previous: french.sc

# hack-filename.sc

This file contains functions that restore the logical path from the automount path, either on text in a buffer or in a string argument.

- void hack_file_name(); looks for the automount directory prefix /tmp_mnt in the current line then deletes it.
- char *hack_file_string(char *path); returns a logical pathname.

Example: hack_file_string ("/tmp_mnt/users/foo.c"); returns: /users/foo.c. These two functions must be adapted to the site automount prefixes.