mbkunlink - delete a file in the WORK_LIBP.
See the file man1/alc_origin.1.
FILE ∗mbkunlink(name, extension)
char ∗name, ∗extension;
- Name of the file to be deleted
- Extension to the file name
deletes a file, searching it in the path specified with the
environment variable MBK_WORK_LIB
(1). Its main issue is to enable
simple file deletion for any program that works with mbk path environment
The file to be erased is called name.extension
, if extension is not
, else it is name
. If extension
is the empty string,
, then the file name will be name.
- on failure, ie the file is not in the MBK_WORK_LIB path.
- on success.
if (mbkunlink(name, "cp"))
fprintf(stdout, "The file %s.cp was not in the work lib0,
See the file man1/alc_bug_report.1.