|
SDDS ToolKit Programs and Libraries for C and Python
|
Utility for stripping path and version information from filenames.
The file implements the clean_filename function, which removes any path components enclosed in square brackets and truncates the string at the first semicolon. The result is a plain filename without VMS style path or version suffixes.
Definition in file clean_filename.c.
#include "mdb.h"#include <ctype.h>Go to the source code of this file.
Functions | |
| char * | clean_filename (char *filename) |
| Removes path and version specifications from a filename string. | |
| char * clean_filename | ( | char * | filename | ) |
Removes path and version specifications from a filename string.
This function eliminates any path components enclosed in ']' and truncates the filename at the first occurrence of ';' to remove version information.
| filename | The filename string to be cleaned. |
Definition at line 34 of file clean_filename.c.